How could you generate test data with no input data?
Answer Posted / teena
using set statement ....cards and datalines needs input data
these below 2 will need input data
_null_ will create no actual dataset but will create obs
obs=0 will create empty dataset
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
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.
Difference between SAS STATA & SPSS?
what is null hypothesis? why do you consider that?
how do you pull data from equifax?tell me the process?
Which are the statements whose placement in the data step is critical?
what is program data vector? : Sas-administrator
what is operational data and operational system? : Sas-di
what is hash files in sas and why we are using this one in sas?
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?
how would you create multiple observations from a single observation? : Sas programming
What are the statements that are executed only?
What is proc sort?
How do you define proc in sas? : sas-grid-administration
what is slowly changing dimension? : Sas-di
Why double trailing @@ is used in input statement?