11.07.2015 Views

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

HLASM: V1R6 Language Ref

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Macro instruction formatparameters and operands (see ▌4▐ in Figure 31) do not affect this order.▌4▐┌─────────┴─────────┐MACRO ▌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▐ENDSublists in operandsFigure 31. Combining positional and keyword parameters&SYSLIST(n): The system variable symbol &SYSLIST(n) refers only to thepositional operands in a macro instruction.You can use a sublist in a positional or keyword operand to specify several values.A sublist is a character string that consists of one or more entries separated bycommas and enclosed in parentheses.If the COMPAT(SYSLIST) assembler option is not specified, a variable symbol thathas been assigned a character string that consists of one or more entries separatedby commas and enclosed in parentheses is also treated as a sublist. However, if theCOMPAT(SYSLIST) assembler option is specified, a sublist assigned to a variablesymbol is treated as a character string, not as a sublist.A variable symbol is not treated as a sublist if the parentheses are not present. Thefollowing example shows two calls to macro MAC1. In the first call, the value of theoperand in variable &VAR1 is treated as a sublist. In the second call, the value of theoperand is treated as a character string, not a sublist, because the variable &VAR2does not include parentheses.&VAR1 SETC ’(1,2)’MAC1 KEY=&VAR1&VAR2 SETC ’1,2’MAC1 KEY=(&VAR2)To refer to an entry of a sublist code, use:v The corresponding symbolic parameter with an applicable subscript, orv The system variable symbol &SYSLIST with applicable subscripts, the first ofwhich refers to the positional operand, and the second to the sublist entry in theoperand. &SYSLIST can refer only to sublists in positional operands.Figure 32 on page 303 shows that the value specified in a positional or keywordoperand can be a sublist.302 <strong>HLASM</strong>: <strong>V1R6</strong> <strong>Language</strong> <strong>Ref</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!