Specifies the first observation that SAS processes in a SAS data set.
Valid in: | DATA step and PROC steps |
Category: | Observation Control |
Restrictions: | Valid for input (read) processing only. |
Cannot use with PROC SQL views. |
specifies the number
of the first observation to process in multiples of 1 (bytes); 1,024
(kilobytes); 1,048,576 (megabytes); or 1,073,741,824 (gigabytes).
For example, a value of 8
specifies
the 8th observation, and a value of 3k
specifies
3,072.
specifies the number
of the first observation to process as a hexadecimal value. You must
specify the value beginning with a number (0–9), followed by
an X. For example, the value 2dx
sets
the 45th observation as the first observation to process.
sets the number of the first observation to process to 1. This is the default.
sets the number of the first observation to process to the maximum number of observations in the data set. This number can be up to the largest eight-byte, signed integer, which is 263–1, or approximately 9.2 quintillion observations.
proc print data=study(firstobs=20); run;
data new; set study(firstobs=5 obs=10); run;
proc print data=new; run;