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 is the command used to find missing values?

1107


What is the basic structure of a sas program?

1126


how to generate the test data in sas without input data? : Sas-administrator

1141


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

1106


Give an example where SAS fails to convert character value to numeric value automatically?

1094


What are the implications?

1720


What are the applications primarily used by business analyst? : Sas-bi

1000


How to specify variables to be processed by the freq procedure?

1078


explain the difference between proc means and proc summary?

1131


What commands are used in the case of including or excluding any specific variables in the data set?

1098


how to change the execute of macro

2318


What does the trace option do?

1116


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro

1070


For clinical entire study how many tables will create approx?

1974


What are common programming errors committed in sas

1153