One way to see what is going on is to execute the code with OPTIONS MPRINT SYMBOLGEN; in the code. The log will then show what the macro variables are being evaluated to (SYMBOLGEN) and then what entire lines of generated code looks like (MPRINT). The log will also display the name of the macro executing which is helpful if you have multiple macros in your program. Turn the options off with OPTIONS NOMPRINT NOSYMBOLGEN;
... View more