I have an increment issue while i am checking some code,
i have &trt in macro variable , i want them increment by j , But j value is not incremented in that loop. something is going wrong but unable to figure it out
macro variables aren't available in the data step they're created, unless you use call symget/symput and/or You need a macro loop. Having a macro loop within a data step loop will be messy though.
Any reason to not pull the variable names out and put that into a separate array?
The 2025 SAS Hackathon Kicks Off on June 11!
Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.