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
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.
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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.