sassoftware / clinical-standards-toolkit

The open source release of SAS Clinical Standards Toolkit is a direct port of the last production release with minor modifications to adapt to a new deployment architecture.
Apache License 2.0
27 stars 11 forks source link

cstutilwriteresultsintro #3

Closed lexjansen closed 2 years ago

lexjansen commented 2 years ago

When removing unnecessary sysver checks, too much was removed in the cstutilwriteresultsintro macro. This results in LOG messages: [CSTLOGMESSAGE.CSTUTILWRITERESULTSINTRO]: Program name could not be determined and has been set to Unspecified

The %else statement needs to be restored in the macro:

%if %nrbquote(%sysfunc(getoption(SYSIN))) EQ and &sysscp eq WIN
  %then %do;
       %if %sysfunc(sysexist(SAS_EXECFILENAME)) %then %let _cstProgram = %sysget(SAS_EXECFILENAME);
  %end;
  %else %let _cstProgram = %sysfunc(scan(%nrbquote(%sysfunc(getoption(SYSIN))),-1,\));  
michaelkilhullen commented 2 years ago

fix pushed