Chapter Contents

Previous

Next
STDIO

STDIO



Specifies that the SAS System should use stdin, stdout, and stderr

Default: NOSTDIO
Valid in: SAS invocation, SASV8_OPTIONS environment variable, configuration file
UNIX specifics: all


Syntax
Details
See Also

Syntax

-STDIO|-NOSTDIO|-


Details

This option tells the SAS System 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 the SAS System 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.

You can specify -STDIO or simply a hyphen (-) by itself.

The STDIO option does not affect the assignment of the STDIO, STDIN, and STDERR filerefs. See Filerefs Assigned by the SAS System for more information.

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

See Also


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.