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
explain the difference between proc means and proc summary?
how to debug and test the sas program? : Sas-administrator
Explain what is SAS informats?
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
Explain what is data step?
What is the difference between %put and symbolgen? : sas-macro
what do the mod and int function do? What do the pad and dim functions do? : Sas programming
What are the default statistics for means procedure?
how can you put a "trace" in your program? : Sas programming
Name some categories in sas 9? : sas-grid-administration
What is the basic syntax of a sas program?
why a stop statement is needed for the point= option on a set statement?
what is program data vector? : Sas-administrator
What system options would you use to help debug a macro? : sas-macro
how will you location sas platform applications available from web browser? : Sas-bi