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
For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration
Which statement does not perform automatic conversions in comparisons?
For what purpose would you use the RETAIN statement?
What is maximum storage capability of SAS?
What is the order of application for output data set options, input data set options and SAS statements?
Can you execute a macro within a macro? Describe. : sas-macro
explain the main difference between the nodup and nodupkey options? : Sas-administrator
What do the mod and int function do? : Sas programming
What is the maximum and minimum length of macro variable
which features do you use to check the data validations and errors? : Sas-administrator
What versions of SAS have you used (on which platforms)?
What sas features do you use to check errors and data validation?
What is the SAS data set?
what are the benefits of data integration? : Sas-di
Explain proc univariate?