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
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?
Differentiate input and infile.
how can you import .csv file in to sas? : Sas programming
why is sas data integration studio important? : Sas-di
What are the parameters of scan function?
Have you used macros? For what purpose you have used? : sas-macro
how does sas handle missing values in procs? : Sas programming
I have a dataset concat having variable a b & c. How to rename a b to e & f?
What are the statements in proc sql?
what is the basic structure sas administrator? : Sas-administrator
How long can a macro variable be? A token? : sas-macro
In SAS explain which statement does not perform automatic conversions in comparisons?
Why and when do you use proc sql?
What is the basic syntax style in SAS?
what are all the reports you generated in your recent project?