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

Are you involved in writing the inferential analysis plan? Tables specfications?

1740


In sas admin differentiate between roles and capabilities? : sas-grid-administration

556


What is the length assigned to the target variable by the scan function?

670


what is change analysis in sas di ? : Sas-di

602


How we can call macros with in data step? : sas-macro

609






How is character variable converted into numeric variable and vice versa?

591


For what purposes have you used sas macros? : sas-macro

537


What do you know about sas and what we do? : sas-grid-administration

597


Mention what is SAS data set?

668


how many types prompting framework can be broken down to? : Sas-bi

626


how to read the variables in sas? : Sas-administrator

551


Mention sas system options to debug sas macros.

659


how do the in= variables improve the capability of a merge? : Sas programming

931


what is data integration? : Sas-di

610


What does PROC print, and PROC contents do?

722