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.

Sublists in operandsA symbolic parameter can refer to the whole sublist (see ▌1▐ in Figure 32), or to anindividual entry of the sublist. To refer to an individual entry, the symbolicparameter (see ▌2▐ in Figure 32) must have a subscript whose value indicates theposition (see ▌3▐ in Figure 32) of the entry in the sublist. The subscript must have avalue greater than or equal to 1.A sublist, including the enclosing parentheses, must not contain more than 1024characters. It consists of one or more entries separated by commas and enclosed inparentheses; for example, (A,B,C,D,E). () is a valid sublist with the null characterstring as the only entry.MACROSUBLISTS &P1,&P2,&KEY=(F0,F,0). <strong>Ref</strong>ers to default value. ┌───▌3▐──┘ in keyword operand. │&KEY(1) DC &KEY(2)’&KEY(3)’.. ┌────────────▌3▐ <strong>Ref</strong>ers to value in&P1(1) DC &P1(2)’&P1(3)’ │ positional operand. ▌2▐ │. │DC A&P2 │. │ │. └───────────────▌1▐ │MEND │ │──────────────────────────────────┼──────┼───────────────────────────────OPEN START 0 │ │. │. ┌─────┐ │SUBLISTS (H20,H,200),(A,B,C) │. │. └──────────────┘.+F0 DC F’0’..+H20 DC H’200’..+ DC A(A,B,C)..ENDFigure 32. Sublists in operandsTable 48 shows the relationship between subscripted parameters and sublist entriesif:v A sublist entry is omitted (see ▌1▐ in Table 48).v The subscript refers past the end of the sublist (see ▌2▐ in Table 48).v The value of the operand is not a sublist (see ▌3▐ in Table 48).v The parameter is not subscripted (see ▌4▐ in Table 48).&SYSLIST(n,m): The system variable symbol, &SYSLIST(n,m), can also refer tosublist entries, but only if the sublist is specified in a positional operand.Chapter 8. How to write macro instructions 303

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

Saved successfully!

Ooh no, something went wrong!