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
explain about various caches available in data integrator? : Sas-di
why is sas considered self-documenting? : Sas programming
Where do you use proc means over proc freq?
Explain substr function?
name some data transformation used in sas di? : Sas-di
what can you learn from the sas log when debugging? : Sas programming
Tell me about % include and % eval? : sas-macro
if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation
What is the difference between reading data from an external file and reading data from an existing data set?
Differentiate between format and informat? : sas-grid-administration
In ARRAY processing, what does the DIM function do?
Explain translate function?
Mention the category in which sas informats are placed?
what is the function of catx syntax? : Sas-administrator
How do dates work in SAS data?