Chapter Contents

Previous

Next
S=

S=



Specifies the length of statements on each line of a source statement and the length of data on lines that follow a DATALINES statement

Valid in: configuration file, SAS invocation, OPTIONS statement, Systems Options window
Category: Input control: Data processing
PROC OPTIONS GROUP= INPUTCONTROL


Syntax
Syntax Description
Details
Comparisons
See Also

Syntax

S=n| nK | nM | nG | MIN | MAX | hex

Syntax Description

n | nK | nM | nG
specifies the length of statements and data in terms of bytes, kilobytes, megabytes, and gigabytes, respectively.

MIN
sets the length of statements and data to 0, and requires SAS to use a default value.

MAX
sets the length of statements and data to the largest unsigned, four-byte integer that is representable in your operating environment.

hex
specifies the length of statements and data as a hexadecimal number. This number must be followed by an X.


Details

Input can be from either fixed- or variable-length records. Both fixed-length and variable-length records can be either unsequenced or sequenced. Unsequenced records do not contain sequence fields. Fixed-length sequenced records contain sequence fields at the end of each record. Variable-length sequenced records contain sequence fields at the beginning of each record.

SAS determines whether the input contains sequence numbers that are based on the value of S. If S=0 and you have fixed-length records, SAS inspects the last n columns (where n is the value of the SEQ= option) of the first sequence field, which is at the end of the first line of input. If those columns contain numeric characters, SAS assumes that the file contains sequence fields and ignores the last eight columns of each line.

If S[ge]0 or MAX and you have fixed-length records, SAS uses that value as the length of the source or data to be scanned, ignores everything beyond that length on each line, and does not look for sequence numbers.

If S=0 and you have variable-length records, SAS inspects the last n columns (where n is the value of SEQ=) of the first sequence field, which is at the beginning of the first line of input. If those columns contain numeric characters, SAS assumes the file contains sequence fields and ignores the first eight columns of each line.

If S[ge]0 or MAX and you have variable-length records, SAS uses that value as the starting column of the source or data to be scanned, ignores everything before that length on each line, and does not look for sequence numbers.


Comparisons

The S= system option operates exactly like the S2= system option except that S2= only controls input from a %INCLUDE statement, an autoexec file, or an autocall macro file.

Operating Environment Information:   The syntax that is shown here applies to the OPTIONS statement. On the command line or in a configuration file, the syntax is specific to your operating environment. For details, see the SAS documentation for your operating environment.  [cautionend]

See Also

System Options:

S2=
SEQ=


Chapter Contents

Previous

Next

Top of Page

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