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
How substr function works in sas?
Mention what is SAS data set?
Give e an example of..
Are you sensitive to code walk-throughs peer review or QC review?
How to create a permanent sas data set?
Define run-group processing?
Explain input and put function?
What do you know about sas and what we do? : sas-grid-administration
How can sas program be validated?
Explain by-group processing?
Mention some common errors that are usually committed in sas programming.
what do the mod and int function do? What do the pad and dim functions do? : Sas programming
name some data transformation used in sas di? : Sas-di
What will calendar procedure do?
what is sas metadata server? : Sas-di