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


Please Help Members By Posting Answers For Below Questions

Can you execute a macro within a macro? Describe. : sas-macro

678


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1470


how many types of prompts are there? : Sas-bi

556


what r the job openings SAS for fresher graduates !

2021


what is the Population you used in your project, is it ITT or PP?

2185






How do dates work in SAS data?

690


what is the basic structure sas administrator? : Sas-administrator

566


What are the functions which are used for character handling functions?

620


Describe what are the different levels of administrative users in sas? : sas-grid-administration

608


what is the difference between floor and ceil functions in sas? : Sas-administrator

708


Explain what is SAS informats?

627


Explain proc univariate?

607


what is broad cast agent? : Sas-bi

599


Why double trailing @@ is used in input statement?

706


What will calendar procedure do?

603