@boyandhisrobot wrote:
This was helpful, thank you! I was able to identify that the issue was with the macro variable and not the sql code. Thank you very much!
Fixed loop index, I= 1 to 33 may not actually match you created macro variable list of "words" that are found with %scan.
Did you find that &variables had fewer than 33 "words"?
To make code like that a bit more flexible %do I = 1 %to %sysfunc(countw(&variables.));
... View more