MEXIT instruction

The MEXIT instruction provides an exit for the assembler from any point in the body of a macro definition. The MEND instruction provides an exit only from the end of a macro definition (see MEND statement for details).

The MEXIT instruction statement can be used only inside macro definitions.
Read syntax diagramSkip visual syntax diagramsequence_symbolMEXIT
sequence_symbol
Is a sequence symbol.

The MEXIT instruction causes the assembler to exit from a macro definition to the next sequential instruction after the macro instruction that calls the definition. (This also applies to nested macro instructions, which are described in Nesting macro instruction definitions.)

For example, the following macro definition contains an MEXIT statement:
         MACRO
         EXITS
         DC    C'A'
         DC    C'B'
         DC    C'C'
         MEXIT
         DC    C'D'
         DC    C'E'
         DC    C'F'
         MEND
When this macro definition is called, these statements are generated:
          EXITS
+         DC    C'A'
+         DC    C'B'
+         DC    C'C'