Causes processing to begin at a specified observation
| Valid in: |
DATA step and PROC steps
|
| Category: |
Observation control
|
| Restriction: |
Use with input data sets only.
|
-
n
-
is a positive integer that is less than
or equal to the number of observations in the data set.
The FIRSTOBS= data set option is valid when an existing
SAS data set is read. You cannot use this option when a WHERE statement or
WHERE= data set option is specified in the same DATA or PROC step.
This PROC step prints the data set STUDY
beginning
with observation 20:
proc print data=study(firstobs=20);
run;
This SET statement uses both FIRSTOBS= and OBS= to read
only observations 5 through 10 from the data set STUDY. Data set NEW contains
six observations.
data new;
set study(firstobs=5 obs=10);
run;
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.