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

thank you!  I pared it down and now I seem to be getting what I expect.  I had symput in the macro and I guess I was unclear on how it works , removing it helped

Tom
Super User Tom
Super User

There is no way for the macro to return anything to the current data step since the macro will not even start running until after the data step finishes running.

ballardw
Super User

Just what are those macros supposed to accomplish?

Without having the definition of the macros it may be that you also have a scope issue of expecting a macro variable to be available outside of the macro using/creating it but is only a local macro variable.

Gayle
Quartz | Level 8
I made the variable global

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 18 replies
  • 4115 views
  • 6 likes
  • 6 in conversation