Is there proc sql code using CURRENT_DATE that I can subtract one day from it in order to extract data from the previous day?
I am trying to automate a report and need the ability to extract data from the previous day.
Is there proc sql code using CURRENT_DATE that I can subtract one day from it in order to extract data from the previous day?
I am trying to automate a report and need the ability to extract data from the previous day.
This should do the trick:
proc sql;
select *
from myTable
where myDate = intnx("day", today(), -1);
quit;