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 / monika

Data test;
input a 8. @@;
datalines;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
;
run;

Data Result;
Set test(firstobs=10 obs=20);
Run;

Proc print data = Result;
Run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a put statement?

668


What is the purpose of _character_ and _numeric_?

591


What are the difficulties u faced while doing vital signs table or dataset?

1939


How to create a permanent sas data set?

680


Explain the difference between using drop = data set option in set and data statement?

687






what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi

635


What is the maximum and minimum length of macro variable

657


How would you identify a macro variable?

653


Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro

702


How do dates work in sas?

649


How would you define the end of a macro? : sas-macro

612


Hi, Does anybody has lastest SAS certification(base, adv., clinical)dumps,if anybody has please email me at mailtorajani76@gmail.com. Thanks

1802


explain the main difference between the nodup and nodupkey options? : Sas-administrator

694


Are you sensitive to code walk-throughs peer review or QC review?

2615


How does proc sql work?

618