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
What are the data types that sas contain?
What is factor analysis?
What is the difference between one to one merge and match merge? Give an example.
What is SAS? What are the functions does it performs?
how does sas handle missing values in formats? : Sas programming
How sas treats the dsd delimiters?
What is run-group processing?
what is the difference between nodup and nodupkey options? : Sas programming
How do dates work in sas?
Describe the ways in which you can create a macro variable?
what are informats in sas? : Sas-administrator
Briefly explain input and put function?
How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?
how do you test for missing values? : Sas programming
what is data integration? : Sas-di