27 %let logfile=%sysfunc(pathname(work))/___log.txt;
29 %SYSEXEC(mkdir
"&dir." >
"&logfile" 2>&1);
30 %
if &g_verbose. %then %
do;
31 %put ======== OS Command Start ========;
34 %
if &sysrc. = 0 %then %put &g_note.(SASUNIT): Sysrc : 0 -> SYSEXEC SUCCESSFUL;
35 %
else %put &g_error.(SASUNIT): Sysrc : &sysrc -> An Error occured;
38 %put &g_note.(SASUNIT): SYSEXEC COMMAND IS: mkdir
"&dir." >
"&logfile" 2>&1;
42 infile
"&logfile" truncover lrecl=512;
46 %put ======== OS Command End ========;