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
how do you test for missing values? : Sas programming
Differentiate between format and informat? : sas-grid-administration
What is the difference between input and infile statement?
What are the default statistics for means procedure?
how to debug and test the sas program? : Sas-administrator
what has been your most common programming mistake? : Sas programming
How is character variable converted into numeric variable and vice versa?
for report generation which one you used proc report or data_null_?
What are the automatic variables for macro? : sas-macro
how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming
how do the in= variables improve the capability of a merge? : Sas programming
How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro
Define run-group processing?
Where do you use proc means over proc freq?
What do you know about sas data set?