Specifies the starting observation number in a user-defined range of observations to be processed.
Valid in: | DATA step and PROC step |
Default: | The first observation in the data set |
Restrictions: | Use STARTOBS= with input data sets only |
Cannot be used with the OBS= system or data set option or with the FIRSTOBS= system and data set option | |
Interactions: | STARTOBS= LIBNAME Statement Option |
ENDOBS= LIBNAME Statement Option | |
ENDOBS= Data Set Option | |
Engine: | SPD Engine only |
libname growth spde 'SAS-library';
data growth.teens;
input Name $ Sex $ Age Height Weight;
list;
datalines;
Alfred M 14 69.0 112.5
Carol F 14 62.8 102.5
James M 13 57.3 83.0
Janet F 15 62.5 112.5
Judy F 14 64.3 90.0
Philip M 16 72.0 150.0
Zeke M 14 71.1 105.1
Alice F 14 65.1 91.0
William M 15 66.5 112.0
Mike M 16 67.0 105.1
;
proc print data=growth.teens (startobs=5);
where age >13;
title 'WHERE age>13 using SPD Engine';
run;
libname growth v9 'SAS-library';
data growth.teens;
input Name $ Sex $ Age Height Weight;
list;
datalines;
Alfred M 14 69.0 112.5
Carol F 14 62.8 102.5
James M 13 57.3 83.0
Janet F 15 62.5 112.5
Judy F 14 64.3 90.0
Philip M 16 72.0 150.0
Zeke M 14 71.1 105.1
Alice F 14 65.1 91.0
William M 15 66.5 112.0
Mike M 16 67.0 105.1
;
proc print data=growth.teens (firstobs=5);
where age >13;
title 'WHERE age>13 using the V9 Engine';
run;