how do i get last 10obs from a dataset when we don't know
about the number of obsevations in that dataset?
Answer Posted / harshal r
data air;
set sashelp.air nobs=tot;
if _n_ gt( tot-10) then output;
run;
Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
Can you execute a macro within a macro? Describe. : sas-macro
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?
how many types of prompts are there? : Sas-bi
what r the job openings SAS for fresher graduates !
what is the Population you used in your project, is it ITT or PP?
How do dates work in SAS data?
what is the basic structure sas administrator? : Sas-administrator
What are the functions which are used for character handling functions?
Describe what are the different levels of administrative users in sas? : sas-grid-administration
what is the difference between floor and ceil functions in sas? : Sas-administrator
Explain what is SAS informats?
Explain proc univariate?
what is broad cast agent? : Sas-bi
Why double trailing @@ is used in input statement?
What will calendar procedure do?