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?
describe the interaction table in sas di? : Sas-di
what is slowly changing dimension? : Sas-di
How many data types are there in SAS?
How can I remove header from output data set?
What do you know about sas and what we do? : sas-grid-administration
How to test the debugging in sas?
How we can call macros with in data step? : sas-macro
Can you execute a macro within a macro? Describe. : sas-macro
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?
What would you change about your job?
Explain the difference between using drop = data set option in set and data statement?
how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5
For what purposes have you used sas macros? : sas-macro
Tell e how how dealt with..