This option tells SAS
to take its input from standard input (stdin), to write its log to
standard error (stderr), and to write its output to standard output
(stdout).
This option is designed
for running SAS in batch mode or from a shell script. If you specify
this option interactively, SAS starts a line mode session. The STDIO
option overrides the DMS, DMSEXP, and EXPLORER system options.
For example, in the
following SAS command, the file
myinput
is
used as the source program, and files
myoutput
and
mylog
are
used for the procedure output and log respectively.
sas -stdio < myinput > myoutput 2> mylog
If
you are using the C shell, you should use parentheses:
(sas -stdio < myinput > myoutput ) >& output_log