how do i get last 10obs from a dataset when we don't know
about the number of obsevations in that dataset?
Answer Posted / its me
Shiva, ur answer is also correct . and here goes another
one dear..
data W;
set X;
if _n_ > 95 then output;
run;
As the total no. of obs are 100, the last five observations
will be be in ur output dataset..
Cheers!!!
| Is This Answer Correct ? | 1 Yes | 14 No |
Post New Answer View All Answers
Explain translate function?
Mention sas system options to debug sas macros.
what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi
What are the implications?
what is the Population you used in your project, is it ITT or PP?
What is the length assigned to the target variable by the scan function?
How does the internal authentication work in sas? : sas-grid-administration
do you prefer proc report or proc tabulate? Why? : Sas programming
Did you used proc test? when?
what is program data vector? : Sas-administrator
How would you identify a macro variable? : sas-macro
Enlist the syntax rules followed in sas statements.
How we can call macros with in data step? : sas-macro
what is information maps?
Explain the main difference between the sas procedures and functions? : Sas-administrator