%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.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.