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


Operation entry

HLASM Language Reference
SC26-4940-06

The operation entry is the symbolic name of the operation code that identifies a macro definition to process.

The operation entry must be a valid symbol, and must be identical to the operation field in the prototype statement of the macro definition.

The assembler searches for source macro definitions before library macro definitions. If you have a source macro definition that has the same name as a library macro definition, the assembler only processes the source macro definition.

You can use a variable symbol as a macro instruction. For example if MAC1 has been defined as a macro, you can use the following statements to call it:
&CALL    SETC            'MAC1'
         &CALL
You cannot use a variable symbol as a macro instruction that passes operands to the macro. The second statement in the following example generates an error:
&CALL    SETC            'MAC1 OPERAND1=VALUE'
         &CALL
You must specify operand entries after the variable symbol, as shown in the following example:
&CALL    SETC            'MAC1'
         &CALL OPERAND1=VALUE

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014