how do i get last 10obs from a dataset when we don't know
about the number of obsevations in that dataset?
Answer Posted / shiva
data a;
do i=1 to 100;
output;
end;
run;
data data1;
set a nobs=tot;
if _n_ gt( tot-10) then output data1;
run;
| Is This Answer Correct ? | 20 Yes | 4 No |
Post New Answer View All Answers
What Proc glm does?
Are you sensitive to code walk-throughs peer review or QC review?
What is the difference between where and if statement?
What is the use of PROC gplot?
how do you pull data from equifax?tell me the process?
Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com
What are the implications?
What does the trace option do?
What do the PUT and INPUT functions do?
Tell me about % include and % eval? : sas-macro
how can you put a "trace" in your program? : Sas programming
how to debug and test the sas program? : Sas-administrator
How will you generate test data with no input data?
In sas admin differentiate between roles and capabilities? : sas-grid-administration
Which command is used to perform sorting in sas program?