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

Suppose we have dataset like sasuser.admit.

we dontknow how many obs are there in this dataset.

then we can use
Proc contents data=sasuser.admit n;
run;
it will come the total no of obs in this dataset.

after doing this you will get 21 obs are there.

data dsn1;
set sasuser.admit(firstobs=12 obs=21);
run;
proc print data=dsn1;
run;
then you will get last 10 obs.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the data types does SAS contain?

1169


What are the default statistics for means procedure?

1299


Explain proc univariate?

1107


what is treatment emergent events and treatment emregent adverse event

2449


How do you specify the number of iterations and specific condition within a single do loop?

1156


Give e an example of..

2138


what are the benefits of data integration? : Sas-di

1177


Differentiate between proc means and proc summary.

1104


How is character variable converted into numeric variable and vice versa?

1222


explain about data integrator metadata reports? : Sas-di

1167


what are the component of range? : Sas-bi

1148


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

1083


hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?

2109


Are you involved in writing the inferential analysis plan? Tables specifications?

4007


what are informats in sas? : Sas-administrator

1151