I need to add date criteria to a where clause and I am having no luck. Below is what I have created so far.
DATA FILE;
FORMAT DTE mmddyy8.;
DTE=TODAY();
Date1= put(Today()-4, date9.);
Date2= put(Today()-7, date9.);
RUN;
DATA _NULL_;
SET FILE;
CALL SYMPUT('Newdate', Date1);
CALL SYMPUT('Newdate1',Date2);
I then add the 'Newdate' to my where clause such as below:
where eff_end_dt = &newdate
I use the DTE in another portion of my code. I am using Date1 and Date2 with newdate and newdate1
What could I be doing wrong.
DATA FILE;
FORMAT DTE mmddyy8.;
DTE=TODAY();
Date1= put(Today()-4, date9.);
Date2= put(Today()-7, date9.);
RUN;
DATA _NULL_;
SET FILE;
CALL SYMPUT('Newdate', Date1);
CALL SYMPUT('Newdate1',Date2);
I then add the 'Newdate' to my where clause such as below:
where eff_end_dt = &newdate
I use the DTE in another portion of my code. I am using Date1 and Date2 with newdate and newdate1
What could I be doing wrong.