MEND statement

Use the MEND statement to indicate the end of a macro definition. It also provides an exit when it is processed during macro expansion. It can appear only once within a macro definition and must be the last statement in every macro definition.

Read syntax diagramSkip visual syntax diagram>>-+-----------------+--MEND-----------------------------------><
   '-sequence_symbol-'        
 
sequence_symbol
is a sequence symbol.

See MEXIT instruction for details on exiting from a macro before the MEND statement.


[ Top of Page | Previous Page | Next Page | Contents | Index ]