I suspect that inserting a COPY CLHHSI statement at the beginning of your program will also solve the problem.
You might try moving your MMMM macro to your maclib to see if that solves the problem. My guess is that calling from a macro (maybe just inline macro's), then only the active macro table is searched instead of looking in the maclib for the definition. You should open an ETR to see if this is a bug or if it works as designed. Regards, Jon Perryman. ________________________________ From: Robert Ngan <[email protected]> To: [email protected] Sent: Wed, September 12, 2012 2:49:24 PM Subject: ASM tag problem The following example program gets ASMA057E if the first inline call to CLHHSI as a macro is not there. I think it's an assembler bug, can anyone say why this behavior would not be considered an error? Note: The CLHHSI macro (after the END) should be placed in an external library. TagTest TITLE 'Test Tags' MACRO MMMM CLHHSI:MAC AAA,2 MEND TagTest CSECT USING TagTest,12 * CLHHSI:MAC BBB,3 <--- Uncomment for clean assembly MMMM , SPACE AAA DC H'0' BBB DC H'0' LTORG , END TagTest *---------------------------------------------------------------------* * Place following in external macro library * *---------------------------------------------------------------------* MACRO CLHHSI &S,&I CLC &S,=AL2(&I) MEND Robert Ngan CSC Financial Services Group
