Chapter Contents |
Previous |
Next |
SAS Companion for the OpenVMS Operating Environment |
Note: Noninteractive mode is similar to batch mode:
statements are usually not expected to come from the terminal, and the SAS
log and procedure output are routed to files with .LOG and .LIS file types
by default.
Invoking SAS in Noninteractive Mode |
$ SAS8 [HOME.SUBDIR]MYPROG
You do not need to include the file type in the filename because the SAS command uses the .SAS file type by default. If [HOME.SUBDIR] is your current default directory, then you can omit the directory name from the file specification as follows:
$ SAS8 MYPROG
In either case, SAS executes the statements in MYPROG.SAS and creates two files in the default directory: MYPROG.LOG contains the SAS log output and MYPROG.LIS contains the output from any SAS procedure that produces output.
To print one or both of these files, use the PRINT DCL command. To view these files at your terminal, use the EDIT or TYPE command. Note that if you use the TYPE command to list a SAS log that contains errors, overprinting obscures the line containing the error unless the OVP system option was set to NOOVP during your SAS session. (For a description of the OVP system option, see SAS Language Reference: Dictionary.)
Recalling SAS Statements |
%include *;
To terminate input and resume noninteractive processing, press CTRL-Z or enter a %RUN statement:
%run;
Note: Like all SAS statements, the %RUN statement must
be followed by a semicolon (;).
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.