Since this involves a macro you should
1) set OPTIONS MPRINT; prior to running the code
2) Run the code
3) post the log of everything related to running the macro. Copy from the LOG and paste into a code box on the forum opened with the {I} or "running man" icon. This is important because the main message windows will reformat the text of the log and the diagnostic underscore characters will not appear in the correct place.
The error message should appear more in context with the generated code.
... View more