BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
RJ2016
Fluorite | Level 6

Hi,

 

I am using %connect to connect to mainframe and connect to a table i am using macro varible &business2  which i have as a %let statment in another node within my SAS project before this code runs Business2 = 160629, when i put &business2.   by it self the log shows it has resolved to 160629 however in the INFILE it does not like it and log advises WARNING: Apparent symbolic reference BUSINESS2 not resolved.  now i have used different INFILE styles from

   INFILE "EXAW.TF.LA.BEK.TGHUP03.FALCANT.D&Business2";

   INFILE "EXAW.TF.LA.BEK.TGHUP03.FALCANT.D&Business2.";

   INFILE = "EXAW.TF.LA.BEK.TGHUP03.FALCANT.D&Business2";

   INFILE "EXAW.TF.LA.BEK.TGHUP03.FALCANT.D&Business2"

   INFILE "EXAW.TF.LA.BEK.TGHUP03.FALCANT.D&Business2."

 

can anyone help?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

To use a macro variable in rsubmit during a connect session, you first need to use the %syslput statement (in the local context, before the rsubmit) so that the macro variable is created in the remote context.

View solution in original post

3 REPLIES 3
Kurt_Bremser
Super User

To use a macro variable in rsubmit during a connect session, you first need to use the %syslput statement (in the local context, before the rsubmit) so that the macro variable is created in the remote context.

RJ2016
Fluorite | Level 6

Hi Kurt,

 

Managed to get this to work thanks to your response thank you

jklaverstijn
Rhodochrosite | Level 12

Hi.

 

It is difficult to tell from the code you provide. Can yhou give us the entire rpogram / macro code and the log? Often this kind of error is due to the scope of a variable. Also, try and run your code using 

 

OPTIONS MPRINT MLOGIC SYMBOLGEN;

Thes eporvide valuable troubleshooting info in the log.

 

Regards,

Jan.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1265 views
  • 0 likes
  • 3 in conversation