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...

You have a data set of 100 observations,how can you
restrict the output so that the output has only data from
row no. 10 to row no. 20

Answer Posted / suri

output window

1)proc print data=ds1(firstobs=10 obs=2);
run;

2)data ds1;
set ds(firstobs=10 obs=20);
run;
3)data ds1;
set ds;
where _n_ in(10:20);
run;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?

2849


Differentiate input and infile.

1044


how can you import .csv file in to sas? : Sas programming

1042


why is sas data integration studio important? : Sas-di

970


What are the parameters of scan function?

1101


Have you used macros? For what purpose you have used? : sas-macro

989


how does sas handle missing values in procs? : Sas programming

1152


I have a dataset concat having variable a b & c. How to rename a b to e & f?

959


What are the statements in proc sql?

1040


what is the basic structure sas administrator? : Sas-administrator

953


How long can a macro variable be? A token? : sas-macro

1152


In SAS explain which statement does not perform automatic conversions in comparisons?

1260


Why and when do you use proc sql?

1176


What is the basic syntax style in SAS?

1089


what are all the reports you generated in your recent project?

2120