HLASM Language Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


MEXIT instruction

HLASM Language Reference
SC26-4940-06

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 diagram
>>-+-----------------+--MEXIT----------------------------------><
   '-sequence_symbol-'          

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'

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014