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
What is the role of unrestrictive users? : sas-grid-administration
Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.
what is the use of sas management console? : Sas-di
for report generation which one you used proc report or data_null_?
What versions of SAS have you used (on which platforms)?
What commands are used in the case of including or excluding any specific variables in the data set?
What is the use of function Proc summary?
Difference between nodup and nodupkey options?
WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?
What are the statements that are executed only?
How substr function works in sas?
Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?
Describe the function and utility of the most difficult SAS macro that you have written?
What are common programming errors committed in sas
What are all the problems you faced while validating tables and reports?