Previous Page | Next Page

Starting SAS with SASRX

Option Syntax


Overview of Option Syntax

You can specify options on the SASRX command line. As described below, there are two categories of options and two types of options, and there are two styles of option specification.


Option Categories

SASRX supports two categories of options, SASRX options and SAS system options.

SASRX options

SASRX options are defined internally to SASRX. SASRX options control what SASRX does in preparing to invoke SAS. The effect of these options occurs before SAS begins executing, such as through the allocation of data sets. See the tables in SASRX Options for information about SASRX options.

SAS system options

All other options that SASRX does not recognize are assumed to be SAS system options. SASRX does not validate or act on options that it does not recognize; it only passes them to SAS. See System Options under z/OS for information about SAS system options.


Option Types

SASRX options and SAS system options are further classified as either switch options or value options. Switch options are specified by a keyword that is not followed by any value. Value options are specified as a keyword that is followed by a value.


Option Specification Styles

SASRX supports two different styles of option specifications, CLIST style and UNIX style. For a CLIST style specification of a switch option, specify only the keyword. For a CLIST style specification of a value option, follow the keyword with optional blank spaces and a value in parentheses, for example linesize(72) .

The distinguishing feature of a UNIX style option specification is that the keyword is prefixed with a hyphen. For a UNIX style specification of a switch option, specify the keyword prefixed with a hyphen. Use the following guidelines and examples to write UNIX style specifications of value options:


Additional Syntax Considerations

If you specify more than one option, separate the option specifications by one or more blank spaces. When using CLIST style specification, you can also separate option specifications with a comma instead of a blank space.

CLIST style and UNIX style option specifications can be intermixed on the command line, with a special caution that is discussed in Option Classification When UNIX Style and CLIST Style Are Mixed. Because the two option specification styles can be intermixed, and because SAS system options are accepted, SASRX does not support the UNIX convention that an argument that does not begin with a hyphen is an input filename. You must specify -input explicitly to identify a SAS program input file, even if UNIX style option specification is used exclusively.

SASRX option names can be truncated to the minimum unique abbreviation. For example, O is the minimum abbreviation for the OPTIONS option because no other SASRX option begins with the letter "O." SASU is the minimum unique abbreviation for the SASUSER option because other options begin with the letters "SAS." As a general rule, SAS system options cannot be abbreviated.

Previous Page | Next Page | Top of Page