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 diagramsequence_symbolMEND
sequence_symbol
Is a sequence symbol.

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