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
what is the difference between floor and ceil functions in sas? : Sas-administrator
Describe the ways in which you can create a macro variable?
Give e an example of..
why is sas data integration studio important? : Sas-di
what is enterprise guide? What is the use of it? : Sas programming
what are the new features included in the new version of sas i.e., Sas 9.1.3? : Sas programming
what is the difference between infile and input? : Sas-administrator
what are 5 ways to perform a table lookup in sas? : Sas-administrator
What are the difficulties u faced while doing vital signs table or dataset?
what is data integration? : Sas-di
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
what are several options for creating reports in web report studio? : Sas-bi
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
What are the features of SAS?
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming