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 / raghu

proc sql;
select count(*) into : cnt from ds;
quit;

data ds1;
set ds(firstobs=%eval(&cnt-9) obs=&cnt);
run;

Is This Answer Correct ?    21 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How substr function works in sas?

1157


Mention what is SAS data set?

1091


Give e an example of..

2275


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

3093


How to create a permanent sas data set?

1140


Define run-group processing?

981


Explain input and put function?

1085


What do you know about sas and what we do? : sas-grid-administration

1051


How can sas program be validated?

975


Explain by-group processing?

949


Mention some common errors that are usually committed in sas programming.

998


what do the mod and int function do? What do the pad and dim functions do? : Sas programming

1102


name some data transformation used in sas di? : Sas-di

912


What will calendar procedure do?

1021


what is sas metadata server? : Sas-di

1050