how do i get last 10obs from a dataset when we don't know
about the number of obsevations in that dataset?
Answer Posted / sumit
data new;
set old;
n = _N_;
run;
Proc sort data = new;
by descending n;
run;
Option OBS= 10;
Proc sort data = new (drop = n);
by descending n;
run;
Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming
what is slowly changing dimension? : Sas-di
do you prefer proc report or proc tabulate? Why? : Sas programming
What makes sas stand out to be the best over other data analytics tools?
How would you identify a macro variable?
describe about metadata object? : Sas-di
Describe a time when you were really stuck on a problem and how you solved it?
Can you explain the process of calendar?
What is factor analysis?
what is snowflake schema? : Sas-di
Name some categories in sas 9? : sas-grid-administration
What is a put statement?
How to sort in descending order?
it will become easy if uuu provide website linkssss and list of consultanciessssss
what are the best practices to process the large data sets in sas programming? : Sas-administrator