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.
No Answer is Posted For this Question
Be the First to Post Answer
What is difference between N and n????
what is the difference between proc means and proc summary?
What SAS statements would you code to read an external raw data file to a DATA step?
In the flow of DATA step processing, what is the first action in a typical DATA Step?
What is the difference between %put and symbolgen? : sas-macro
Explain input and put function?
What is instream data in SAS?
What are common programming errors committed in sas
What are the joins,types of joins and thier functions?
how to change the execute of macro
What are the functions done while Compilation...?
I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry