how do i get last 10obs from a dataset when we don't know
about the number of obsevations in that dataset?
Answer Posted / its me
Shiva, ur answer is also correct . and here goes another
one dear..
data W;
set X;
if _n_ > 95 then output;
run;
As the total no. of obs are 100, the last five observations
will be be in ur output dataset..
Cheers!!!
| Is This Answer Correct ? | 1 Yes | 14 No |
Post New Answer View All Answers
why a stop statement is needed for the point= option on a set statement?
explain the function of substr in sas? : Sas-administrator
what is sas business intelligence? : Sas-bi
how could you generate test data with no input data? : Sas programming
In proc transpose and data step with arrays which one you pick?
what is change analysis in sas di ? : Sas-di
What would be the value of month at the end of data step execution and how many observations would be there?
what is sas data set?
What is the differnce between SDTM 3.1.2 to 3.1.1 version
How substr function works in sas?
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;
What is slibref?
What are the functions which are used for character handling functions?
How to test the debugging in sas?
What was the last computer book you purchased? Why?