%macro data_pull(sas_run_date=%sysfunc(today()),rpt_ds=FIN360_MBR_ROSTER_RPT_Curr,Rpt_Missing=MBR_MISSING_SNF);
data_null_;
/* sas_run_date = today();*/
/* sas_run_date = &Report_Run_Dt;*/
sas_run_date = &sas_run_date.;
begindt=intnx("Month",sas_run_date,-1,'B');
enddt=intnx("Month",sas_run_date,0,'E');
CALL SYMput('sas_run_dt' , "'"|| TRIM(LEFT(put(sas_run_date,DATE9.))) ||"'d");
CALL SYMput('beg_dt' , "'"|| TRIM(LEFT(put(begindt,DATE9.))) ||"'d");
CALL SYMput('end_dt' , "'"|| TRIM(LEFT(put(enddt,DATE9.))) ||"'d");
run;
%put &sas_run_dt.;
%put &beg_dt.;
%put &end_dt.;
Two steps to take:
First, since the code looks fine, just run it again in a new SAS session. Unbalanced quotes can occur because of the code that ran before this.
Second, if the problem is still there, post the log so we can see what the message refers to.
Good luck.
What is the question?
Two steps to take:
First, since the code looks fine, just run it again in a new SAS session. Unbalanced quotes can occur because of the code that ran before this.
Second, if the problem is still there, post the log so we can see what the message refers to.
Good luck.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.