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
name several ways to achieve efficiency in your program? : Sas programming
Intern stastical programmer written test
What is PDV?
What is SAS? What are the functions does it performs?
what is sas application server? : Sas-di
How do you test for missing values?
Explain what Proc glm does?
What is the difference between order and group variable in proc report?
what is change analysis in sas di ? : Sas-di
Explain why double trailing @@ is used in input statement?
What are the table names in oracle database...?
What do the mod and int function do? : Sas programming
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?
why is sas considered self-documenting? : Sas programming
i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;