I currently have the following:
proc sql;
select
a.id,
b.logon_id,
b.enter_date,
b.cd,
b.bef_desc,
b.aft_desc
from
fs.ROOT_VIEW a,
fs.t_trans b
where
a.id=b.id and
enter_date between to_date(07/01/2010,mm/dd/yyyy') and to_date(07/01/2010,mm/dd/yyyy') ;
I want to write a macro so that when this runs monthly, I won't have to physically change the date range. I'm not sure how to go about this since it's a Proc SQL. Any suggesstions?