Submits an operating system command or a Windows application for execution.
| Category: | Special |
| Windows specifics: | command must be a valid Windows command |
| See: | CALL SYSTEM Routine in SAS Functions and CALL Routines: Reference |
can be any of the following:
exit to return to
your SAS session.
options noxwait;
data _null_;
input flag $ name $8.;
if upcase(flag)='Y' then
do;
command='md c:\'||name;
call system(command);
end;
datalines;
Y mydir
Y junk2
N mydir2
Y xyz
;Y.
data _null_;
answer='n';
if upcase(answer)='y' then
do;
x 'md c:\extra';
end;
run;'n' or 'y'.
data _null_;
call system('dir /w');
run;