Chapter Contents |
Previous |
Next |
OBS= |
Valid in: | configuration file, SAS invocation, OPTIONS statement, Systems Options window |
Category: | Files: SAS files |
PROC OPTIONS GROUP= | SASFILES |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples | |
See Also |
Syntax |
OBS=n | nK | nM | nG | MIN | MAX | hex |
If OBS=0 and the NOREPLACE option is in effect, SAS can still take certain actions because it actually executes each DATA and PROC step in the program, using no observations. For example, SAS executes procedures, such as CONTENTS and DATASETS, that process libraries or SAS data sets. External files are also opened and closed. Therefore, even if you specify OBS=0, when your program writes to an external file with a PUT statement, an end-of-file mark is written, and any existing data in the file are deleted.
Details |
The OBS= system option specifies which observation from a data set or which record from a raw data file that SAS reads last. You can also use OBS= to control analysis of SAS data sets in PROC steps.
If SAS is processing a file of raw data, OBS= specifies the last line of data to read. SAS counts a line of input data as one observation, even if the raw data for several SAS data set observations are on a single line.
You must specify OBS=MAX to use a WHERE statement or WHERE= data set option.
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.
Comparisons |
Examples |
options obs=50;
options obs=0 noreplace;
options firstobs=1000 obs=1100;
See Also |
Data Set Options:
|
System Option:
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.