SAS
Running SAS in batch mode
To run SAS in batch mode, simply enter
sas filename.sas
at the shell prompt of an IRES session, where "filename.sas"
is the name of a file containing SAS commands.
For example, if the file sample.sas contains:
data test;
input id age grade;
cards;
01 18 2
02 22 4
03 20 2
04 19 1
05 20 3
06 18 9
;
proc print data=test;
run;
Entering the command:
$ sas sample.sas
will run a SAS job that produces the files:
sample.log
and
sample.lst
which contain a log of the SAS run and the resulting output,
respectively.