Good afternoon,
%let startdate = '2017-01-01'; %let enddate = '2018-07-01';
%let start_dt = '01jan2017:00:00:00'dt; %let end_dt = '01jul2018:00:00:00'dt;
I want to automate this Proc SQL so that whenever I run the program it would automatically get data from the most recent month back to fourteen months ago. Today is the 18th of July, I do not want the first 18 days of today's month, nor the last twelve days of fourteen months ago accounted for. How can I arrange these %let statements reflect my wishes? Thank you!