Answer Posted / prasad
by this option, we can set the year span like -
Options yearcutoff=2050
so it sets year from 2050 to 2149 .., not 2050 to 2049.
Is This Answer Correct ? | 19 Yes | 3 No |
Post New Answer View All Answers
what is the basic structure sas administrator? : Sas-administrator
Give some ways by which you can define the variables to produce the summary report (using proc report)?
Explain data step in SAS
What is the difference between reading data from an external file and reading data from an existing data set?
What do the mod and int function do? : Sas programming
What is Linear Regression?
what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?
What is a method to debug and test your SAS program?
What is the work of tranwrd function?
Are you sensitive to code walk-throughs peer review or QC review?
Have you used macros? For what purpose you have used? : sas-macro
what is metadata? : Sas-bi
What is the use of stop statement?
how would you determine the number of missing or nonmissing values in computations? : Sas programming
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.