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

What Proc glm does?

1137


Are you sensitive to code walk-throughs peer review or QC review?

3198


What is the difference between where and if statement?

1151


What is the use of PROC gplot?

1204


how do you pull data from equifax?tell me the process?

1836


Hi all, If Anybody has Advance SAS Certification dumps??? Please share with me. Email: pramod.kalugade03@gmail.com

2085


What are the implications?

1785


What does the trace option do?

1163


What do the PUT and INPUT functions do?

1386


Tell me about % include and % eval? : sas-macro

1190


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

1110


how to debug and test the sas program? : Sas-administrator

1075


How will you generate test data with no input data?

1232


In sas admin differentiate between roles and capabilities? : sas-grid-administration

1051


Which command is used to perform sorting in sas program?

1095