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

name several ways to achieve efficiency in your program? : Sas programming

987


Intern stastical programmer written test

683


What is PDV?

1094


What is SAS? What are the functions does it performs?

1140


what is sas application server? : Sas-di

999


How do you test for missing values?

1567


Explain what Proc glm does?

1115


What is the difference between order and group variable in proc report?

1366


what is change analysis in sas di ? : Sas-di

996


Explain why double trailing @@ is used in input statement?

1010


What are the table names in oracle database...?

2690


What do the mod and int function do? : Sas programming

1133


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

1300


why is sas considered self-documenting? : Sas programming

1083


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;

2438