BookmarkSubscribeRSS Feed
Gick
Pyrite | Level 9

sorry for the delay, I'll see that then get back to you.

 

Thank you

Gick

Tom
Super User Tom
Super User

Sounds like you have your answer.  Earlier in your code you have generated unbalanced quotes and it takes until that %IF statement tries to run for it to cause an actual syntax error.

 

Perhaps we have an XY problem here? https://xyproblem.info/

Can you explain what the overall goal is of this program?

Perhaps there is a simpler solution that does not require storing the values of dataset variables into macro variables where they can potentially cause syntax errors?

Gick
Pyrite | Level 9

Hello,

 

I often receive the data. The idea is to have a program that I will launch each time data is received.

 

Thank you.

Gick

Kurt_Bremser
Super User

@Gick wrote:

Hello,

 

I often receive the data. The idea is to have a program that I will launch each time data is received.

 

Thank you.

Gick


Yes, but why do you think you need a complete list of variable values in a macro variable? Instead of repeating code over all values, use the power of BY.

Tom
Super User Tom
Super User

@Gick wrote:

Hello,

 

I often receive the data. The idea is to have a program that I will launch each time data is received.

 

Thank you.

Gick


Not asking about WHEN you run the program. The question was WHY are you running that program.  WHAT is the goal of the program as a whole?  WHY does the program appear to be putting data into macro variables?  WHAT is the final output?

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 34 replies
  • 2109 views
  • 1 like
  • 8 in conversation