Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Combining positional and keyword operands HLASM Language Reference SC26-4940-06 |
|
You can use positional and keyword operands in the same macro instruction. Use a positional operand for a value that you change often, and a keyword operand for a value that you change infrequently. Positional and keyword parameters can be mixed freely in the macro
prototype statement (see 1 in Figure 1). The same applies to the positional
and keyword operands of the macro instruction (see 2 in Figure 1). Note, however, that the order in
which the positional parameters appear (see 3 in Figure 1) determines the order in which the
positional operands must appear. Interspersed keyword parameters and
operands (see 4 in Figure 1) do not affect this order.
Figure 1. Combining positional
and keyword parameters
4 ┌─────────┴─────────┐ MACRO V V 1 MIX &P1,&KEY1=A,&P2,&P3,&P4,&KEY2=,&P5 . ¹ ² ³ ⁴ ⁵ 3 . . MEND ───────────────────────────────────────────────────────────────── START 0 . . . ₁ ₂ ₃ ₄ ₅ 3 2 MIX KEY1=B,ONE,TWO,THREE,KEY2=33,FOUR,FIVE . ∧ ∧ . └─────────┬──────────┘ . 4 END &SYSLIST(n): The system variable symbol &SYSLIST(n) refers only to the positional operands in a macro instruction. |
Copyright IBM Corporation 1990, 2014
|