I have two numeric variables, date1 and date2, which are both currently set to 20170502.
In my macro, I want to send an email if the two variables are equal. This is my code:
%let date1 = input(put(intnx('day', today(),-3),yymmddn8.),8.);
%macro EMAIL;
filename INSRNC email;
data _null_;
%if &date1. = &date2. %then %do;
file INSRNC to="email@address"
subject= "test";
put "email message";
%end;
run;
%mend;
%EMAIL;
I am getting the error message: "Required operator not found in expression"
Am I using the wrong operator?
Thanks