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 to do user inputs and command line arguments in sas?

3094


How you can read the variables that you need?

1179


What is the function of output statement in a SAS Program?

1126


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

3200


how will you locate the sas platform applications? : Sas-bi

1084


Difference between nodup and nodupkey options?

1274


Explain the purpose of retain statement.

1107


how are numeric and character missing values represented internally? : Sas programming

1200


Approximately what date is represented by the SAS date value of 730?

1272


what is intially documentation in sas?

5129


What would be the value of month at the end of data step execution and how many observations would be there?

1234


Explain data step in SAS

1163


Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

2308


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

1034


what is snowflake schema? : Sas-di

1263