SASUnit Examples  Version 1.2
_sasunit_oscmds.sas
Go to the documentation of this file.
1 
17 /* change history
18  31.08.2012 KL Contents of g_sasstart is concatenated in a data step for both environments, so both need quotes.
19  03.08.2010 AM First version
20 */
21 
22 %macro _sasunit_oscmds;
23 
24 %global
25  g_removedir
26  g_makedir
27  g_copydir
28  g_endcommand
29  g_sasstart
30  g_splash
31  ;
32 %if &sysscp. = WIN %then %do;
33  %let g_removedir = rd /S /Q;
34  %let g_makedir = md;
35  %let g_copydir = xcopy /E /I /Y;
36  %let g_endcommand =;
37  %let g_sasstart ="%sysget(sasroot)/sas.exe";
38  %let g_splash = -nosplash;
39 %end;
40 %else %if &sysscp. = LINUX %then %do;
41  %let g_removedir = rm -r -f;
42  %let g_makedir = mkdir;
43  %let g_copydir = cp -R;
44  %let g_endcommand =%str(;);
45  %_sasunit_xcmd(umask 0033);
46  %let g_sasstart ="%sysfunc(pathname(sasroot))/bin/sas_%sysget(SASUNIT_LANGUAGE)";
47  %let g_splash =;
48 %end;
49 
50 %mend _sasunit_oscmds;
51