The number attribute applies to the operands of macro instructions and subscripted SET symbols.
When applied to a macro operand, the number attribute is a numeric value equal to the number of sublist entries.
When applied to a subscripted SET symbol, the number attribute is equal to the highest element to which a value has been assigned in a SETx instruction. Consider the example in Figure 39.
1 macro
2 MAC1 &op1
3 lcla &SETSUB(100)
4 &SETSUB(5) seta 20,,,70
5 &B seta N'&SETSUB
6 &C seta N'&op1
7 DC C'Highest referenced element of SETSUB = &B'
8 DC C'Number of sublist entries in OP1 = &C'
9 mend
000000 00000 0004C 10 a csect
11 MAC1 (1,(3),(4))
000000 C889878885A2A340 12+ DC C'Highest referenced element of SETSUB = 8'
000028 D5A4948285994096 13+ DC C'Number of sublist entries in OP1 = 3'
14 endN'&op1 is equal to 3 because there are three subscripts in the macro operand in statement 11: 1, (3), and (4).
N'&SETSUB is equal to 8 because &SETSUB(8), assigned the value 70 in statement 4, is the highest referenced element of the &SETSUB array entries.
[ Top of Page | Previous Page | Next Page | Contents | Index ]