Chapter Contents

Previous

Next
SYSIN=

SYSIN=



Specifies the default location of SAS source programs

Language element: system option
Default: SYS$INPUT for the SAS windowing environment and interactive line mode; program-name.SAS for noninteractive and batch modes
Valid in: configuration file, SAS invocation, VMS_SAS_OPTIONS DCL symbol
OpenVMS specifics: All aspects are host-specific


Syntax
Details

Syntax

SYSIN=file-specification
NOSYSIN

SYSIN=file-specification
identifies an external file. The value for file-specification can be an OpenVMS logical name or pathname.

NOSYSIN
invokes the SAS System, processes the autoexec file, and then terminates the SAS System, returning you to the DCL prompt.


Details

The SYSIN= system option specifies a file containing a SAS program. This option indicates to the SAS System that you are executing in noninteractive mode and can be specified only in the SAS invocation.

The default value for the SYSIN= system option under interactive line mode and the SAS windowing environment is the SYS$INPUT logical name. Any value other than SYS$INPUT for file-specification prevents the SAS System from running interactively. The value for file-specification can be a valid OpenVMS pathname or logical name. The default value for SYSIN= in noninteractive and batch modes is the file specification that you provided with the SAS command. For example, if you invoke the SAS System with the following command, the value for file-specification is ORANGES.SAS:

$ SAS ORANGES

You can also explicitly specify the SYSIN= system option as an option in the SAS command when you invoke the SAS System in noninteractive or batch mode, as in the following example:

$ SAS/SYSIN=ORANGES
This technique allows you to include your source file specification in a configuration file.

Under OpenVMS, the syntax of this system option also enables you to specify NOSYSIN. If you specify NOSYSIN, as in the following example, the SAS System is invoked, the autoexec file is processed, and then the SAS System terminates, returning you to the DCL prompt:

$ SAS/NOSYSIN/AUTOEXEC=MYEXEC.SAS
This technique is useful if you want to test an autoexec file without actually running a complete SAS session.

The SYSIN= system option is associated with an automatic macro variable, VMSSASIN. This variable contains the value of the SYSIN= option, and provides you with the name of the SAS job that is currently being run. When the SAS System is run in an interactive mode the value is SYS$INPUT.

Also, the SYSIN= option accepts wildcard specifications. For example, you could use the following SAS command to invoke the SAS System:

SAS/SYSIN=*.SAS

This command causes the SAS System to execute all the files with an extension of .SAS in the current directory. Only one log and one procedure output file are created. By default, the name of the first job run is used for these files.


Chapter Contents

Previous

Next

Top of Page

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