Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How you can read the variables that you need?

1125


do you prefer proc report or proc tabulate? Why? : Sas programming

987


why is a stop statement needed for the point=option on a set statement? : Sas programming

1089


how can you put a "trace" in your program? : Sas programming

1068


in the flow of data step processing, what is the first action in a typical data step? : Sas programming

1080


Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro

1200


Explain append procedure?

1090


Explain by-group processing?

1004


How necessary is it to be creative in your work?

2477


what is treatment emergent events and treatment emregent adverse event

2407


What is the role of administrative users? : sas-grid-administration

1084


If you were told to create many records from one record, show how you would do this using array and with proc transpose?

1495


what are 5 ways to perform a table lookup in sas? : Sas-administrator

1240


What is PROC in SAS?

1058


what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming

1248