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
i have a data set with 20 observations i want label from 8 to 15 observations ? how you create this one.
Describe the function and untility of the most difficult SAS macro that you have written.
How do you control the number of observations and/or variables read or written?
What is the length assigned to the target variable by the scan function?
how would you determine the number of missing or nonmissing values in computations? : Sas programming
what are the new features included in the new version of SAS i.e., SAS9.1.3?
5 Answers College School Exams Tests, Wockhardt,
What are the new features included in the new version of SAS Programming Language?
What are common programming errors committed in sas
How could you generate test data with no input data?
What versions of SAS have you used (on which platforms)?
What do the put and input function do?
what is Enterprise Guide?what is the use of it?