I have a data set with 1000 observations. I want to only print out the last observation. Using the following:
proc print data=apple(firstobs = 1000 obs = 1000);
run;
I can get the last observation. But I have to know in advance that my data set has 1000 observations. How do I do this without knowing this?