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


Please Help Members By Posting Answers For Below Questions

Can you execute macro within another macro? : sas-macro

758


What are all the problems you faced while validating tables and reports?

3242


What is the basic syntax style in SAS?

852


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

816


Describe crosslist option in tables statement?

953


How necessary is it to be creative in your work?

2228


what is hierarchy flattening? : Sas-di

845


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.

2037


what is the primary data source for the wrs? : Sas-bi

890


What are pdv and it functions?

783


how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming

844


Explain the use of proc print and proc contents?

739


what are some differences between proc summary and proc means? : Sas programming

767


What does the trace option do?

885


Mention what is PROC in SAS?

836