SASUnit Examples  Version 1.2.1
_sasunit_xcmd.sas
Go to the documentation of this file.
1 
20 /* change history
21  02.10.2008 NA Anpassung an Linux
22 */
23 
24 %macro _sasunit_xcmd(i_cmd);
25 %if &sysscp. = WIN %then %do;
26  %local xwait xsync xmin;
27  %let xwait=%sysfunc(getoption(xwait));
28  %let xsync=%sysfunc(getoption(xsync));
29  %let xmin =%sysfunc(getoption(xmin));
30 
31  options noxwait xsync xmin;
32 
33  %SYSEXEC &i_cmd;
34 
35  options &xwait &xsync &xmin;
36 %end;
37 
38 %else %if &sysscp. = LINUX %then %do;
39  %SYSEXEC &i_cmd;
40 %end;
41 
42 %mend _sasunit_xcmd;
43