I am passing month and dates macro variables using the Parameter (macro variable) Manager in EG to a remote session. &Month is classifed as string while &date1 and &date2 are integers. I then use the following codes: %syslput rmonth=%bquote(&month); %syslput rdate1=&date1; %syslput rdate2=&date2; rsubmit; %put &rmonth. &rdate1. &rdate2.; proc contents data = ASPCCR.Cmsambs&rdate1.&rdate2.; run; proc contents data = TRIAD.Base_&rmonth.; run; endrsubmit; And here's the log excerpt. I can see the local macro variables were passed correctly remotely but it will not recognised JUN12 (&rmonth). Can anyone help please? I tried restricting the string length to 5 but still the same error. Also checked that TRIAD.Base_JUN12 exists and the code runs smoothly without macro variables. SYMBOLGEN: Macro variable MONTH resolves to JUN12 SYMBOLGEN: Some characters in the above value which were subject to macro quoting have been unquoted for printing. 17 18 %syslput rmonth=%bquote(&month); SYMBOLGEN: Macro variable DATE1 resolves to 1206 19 %syslput rdate1=&date1; SYMBOLGEN: Macro variable DATE2 resolves to 29 20 %syslput rdate2=&date2; 21 22 rsubmit; NOTE: Remote submit to CREDIT commencing. 13 %put &rmonth. &rdate1. &rdate2.; JUN12 1206 29 14 proc contents data = ASPCCR.Cmsambs&rdate1.&rdate2.; 15 run; NOTE: PROCEDURE CONTENTS used (Total process time): real time 0:00.03 cpu time 0:00.03 NOTE: The PROCEDURE CONTENTS printed pages 20-38. 16 proc contents data = TRIAD.Base_&rmonth.; NOTE: Line generated by the macro variable "RMONTH". 16 TRIAD.Base_JUN12 ----- 22 ----- 202 ERROR: File TRIAD.BASE_.DATA does not exist. ERROR 22-322: Syntax error, expecting one of the following: ;, (, CENTILES, DATA, DETAILS, DIR, DIRECTORY, FMTLEN, LIB, MEMTYPE, MT, MTYPE, NODETAILS, NODS, NOPRINT, ORDER, OUT, OUT2, SHORT, VARNUM. ERROR 202-322: The option or parameter is not recognized and will be ignored. 17 run; NOTE: Statements not processed because of errors noted above. 2 The SAS System 09:51 Wednesday, November 14, 2012 NOTE: PROCEDURE CONTENTS used (Total process time): real time 0:00.00 cpu time 0:00.02 NOTE: The SAS System stopped processing this step because of errors. NOTE: Remote submit to CREDIT complete.
... View more