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

What are the scrubbing procedures in sas?

1009


how to remove duplicates using proc sql?

1151


What is a method to debug and test your SAS program?

1374


What is the difference between reading data from an external file and reading data from an existing data set?

1176


How do you connect the desktop application to metadata server? : sas-grid-administration

1098


what other sas products have you used and consider yourself proficient in using? : Sas programming

1115


Explain data_null_?

1064


what is sas metadata server? : Sas-di

1107


hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana

5452


How we can create SAS USER DEFINED CODE?

2099


How substr function works in sas?

1223


Mention common programming errors committed in sas ?

1127


Explain the special input delimiters used in sas programming.

1008


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

1085


explain the proc in sas? : Sas-administrator

1092