how do i get last 10obs from a dataset when we don't know
about the number of obsevations in that dataset?
Answer Posted / raghu
proc sql;
select count(*) into : cnt from ds;
quit;
data ds1;
set ds(firstobs=%eval(&cnt-9) obs=&cnt);
run;
| Is This Answer Correct ? | 21 Yes | 0 No |
Post New Answer View All Answers
What are the scrubbing procedures in sas?
how to remove duplicates using proc sql?
What is a method to debug and test your SAS program?
What is the difference between reading data from an external file and reading data from an existing data set?
How do you connect the desktop application to metadata server? : sas-grid-administration
what other sas products have you used and consider yourself proficient in using? : Sas programming
Explain data_null_?
what is sas metadata server? : Sas-di
hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana
How we can create SAS USER DEFINED CODE?
How substr function works in sas?
Mention common programming errors committed in sas ?
Explain the special input delimiters used in sas programming.
If you use a symput in a data step, when and where can you use the macro variable? : sas-macro
explain the proc in sas? : Sas-administrator