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 / shambhu verma
Options firstobs=10 obs=20;
proc print data= sas data set;
run;
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
Can you execute macro within another macro? : sas-macro
What are all the problems you faced while validating tables and reports?
What is the basic syntax style in SAS?
What do you know about sas and what we do? : sas-grid-administration
Describe crosslist option in tables statement?
How necessary is it to be creative in your work?
what is hierarchy flattening? : Sas-di
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 is the primary data source for the wrs? : Sas-bi
What are pdv and it functions?
how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming
Explain the use of proc print and proc contents?
what are some differences between proc summary and proc means? : Sas programming
What does the trace option do?
Mention what is PROC in SAS?