I am working on a problem and there is something that I do not understand.
The data set sasdata.prdsales contains 5,000 observations.
libname sastemp 'SAS-data-library';
options obs=500;
proc print data=sasdata.prdsales (firstobs=100);
run;
options obs=max;
proc means data=sasdata.prdsales(firstobs=500);
run;
My understanding is that OBS= specifies the number of observations SAS will process, so for the PROC PRINT statement I am thinking that starting with observation number 100, ending at observation number 499, 500 observations are going to be processed.
For the PROC MEANS step, the OBS=MAX instructs SAS to process all observations, but since the starting observation is from 500, the total number of observations will be from 500 to 5,000 which is 4,501 observations.
However, the answer to this questions says that the PROC PRINT has 501 observations and I am confused...
Thank you.