23 %LOCAL xwait xsync xmin logfile;
24 %LET xwait=%sysfunc(getoption(xwait));
25 %LET xsync=%sysfunc(getoption(xsync));
26 %LET xmin =%sysfunc(getoption(xmin));
28 OPTIONS noxwait xsync xmin;
30 %LET logfile=%sysfunc(pathname(work))\___log.txt;
32 %SYSEXEC &i_cmd >
"&logfile";
35 %IF &g_verbose. %THEN %DO;
36 %PUT ======== OS Command Start ========;
38 %IF &sysrc. = 0 %THEN %PUT &g_note.(SASUNIT): Sysrc : 0 -> SYSEXEC SUCCESSFUL;
39 %ELSE %PUT &g_error.(SASUNIT): Sysrc : &sysrc -> An Error occured;
42 %PUT &g_note.(SASUNIT): SYSEXEC COMMAND IS: &i_cmd >
"&logfile";
46 infile
"&logfile" truncover;
51 %PUT ======== OS Command End ========;
54 OPTIONS &xwait &xsync &xmin;