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 / reema
For that u have to use fistobs and obs both.
Eg:- firstobs 10 obs 20
Firstobs :- Will start observing from the row 10 ..
Obs:- will show till 20th observation .
| Is This Answer Correct ? | 21 Yes | 3 No |
Post New Answer View All Answers
What are the statements in proc sql?
What is the basic structure of the SAS base program?
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
what is sas metadata server? : Sas-di
How can you limit the variables written to output dataset in data step?
Have you used macros? For what purpose you have used? : sas-macro
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
What are the parameters of scan function?
Explain translate function?
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.
Name any two sas spawners? : sas-grid-administration
How would you identify a macro variable? : sas-macro
What are the prime responsibilities of data integration administrator? : Sas-di
what is the one statement to set the criteria of data that can be coded in any step? : Sas programming
What’s the difference between var b1 – b3 and var b1 — b3?