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 are all the ways to define macro variable??
2 Answers GSK GlaxoSmithKline,
How do i read multiple spaces in datasets?
explain what is factor analysis? : Sas-administrator
How will you generate test data with no input data?
what is hash files in sas and why we are using this one in sas?
what is the difference between SET and MERGE?
What is SAS? What are the functions does it performs?
what is transformation in sas data integration? : Sas-di
how can you put a "trace" in your program? : Sas programming
if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...
What does the trace option do?
what is chi-square test? have you used that?
1 Answers Accenture, Quintiles,