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

What is the role of unrestrictive users? : sas-grid-administration

571


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.

1459


what is the use of sas management console? : Sas-di

611


for report generation which one you used proc report or data_null_?

6577


What versions of SAS have you used (on which platforms)?

1011






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

587


What is the use of function Proc summary?

651


Difference between nodup and nodupkey options?

628


WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?

2262


What are the statements that are executed only?

672


How substr function works in sas?

699


Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1465


Describe the function and utility of the most difficult SAS macro that you have written?

2021


What are common programming errors committed in sas

667


What are all the problems you faced while validating tables and reports?

3004