A macro is a block of code with a name. You can use the name as a convenient alternative to repeating the block of code.
A macro definition is enclosed within MACRO and MEND directives.
The main uses for a macro are:
To make it easier to follow the logic of the source code by replacing a block of code with a single meaningful name.
To avoid repeating a block of code several times.