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


How to specify macro definitions

HLASM Language Reference
SC26-4940-06

A macro definition is a set of statements that defines the name, the format, and the conditions for generating a sequence of assembler language statements. The macro definition can then be called by a macro instruction to process the statements. See topic Macro instruction for a description of the macro instruction. To define a macro you must:
  • Give it a name
  • Declare any parameters to be used
  • Write the statements it contains
  • Establish its boundaries with a macro definition header statement (MACRO) and a macro definition trailer statement (MEND)

Except for conditional assembly instructions, this chapter describes all the statements that can be used to specify macro definitions. Conditional assembly instructions are described in How to write conditional assembly instructions.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014