STDIO System Option: UNIX

Specifies whether SAS should use stdin, stdout, and stderr.
Valid in: configuration file, SAS invocation, SASV9_OPTIONS environment variable
Category: Input control: Data processing
PROC OPTIONS GROUP= INPUTCONTROL
Default: NOSTDIO
UNIX specifics: all

Syntax

–STDIO | –NOSTDIO

Details

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.
The STDIO option does not affect the assignment of the Stdio, Stdin, and Stderr filerefs. For more information, see Filerefs Assigned by SAS in UNIX Environments.
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