Hello.
Could someone help understand why I cannot get this very simple macro to execute? When I run it I do get the params data from that step but nothing within the macro executes. On the initial run I get no failure at all, just no execution. On all subsequent runs I get,
"The quoted string currently being processed has become more than 262 characters long. You might have unbalanced quotation marks."
This forces me to close SAS and reopen.
Thank you very much.
data params;
attrib
run_date length = 8 format = mmddyy10.
begin_date length = 8 format = mmddyy10.
ending_date length = 8 format = mmddyy10.
rep_start_date length = $10
rep_end_date length = $10;
run_date = today();
run_month = month(run_date);
/* begin_date = intnx('semiyear',run_date,1,"BEGIN");*/
/* ending_date = intnx('semiyear',run_date,1,"END");*/
/* rep_start_date = put(begin_date, mmddyy10.);*/
/* rep_end_date = put(ending_date, mmddyy10.);*/
call symput("run_month",run_month);
/* call symput("begin_date",begin_date);*/
/* call symput("ending_date",ending_date);*/
/* call symput("rep_start_date",rep_start_date);*/
/* call symput("rep_end_date",rep_end_date);*/
run;
%macro run_code;
%if %eval(&run_month. = 1 or &run_month. = 7) %then %do;
data temp_01;
test_var = 'This code actually ran.';
run;
%end;
%mend;
%macro run_code;
... View more