Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Extended SET statements HLASM Language Reference SC26-4940-06 |
|
As well as assigning single values to SET symbols, you can assign
values to multiple elements in an array of a subscripted SET symbol
with one single SETx instruction. Such an instruction is called an extended
SET statement.
.-,-------. V | >>-variable_symbol(subscript)--+-SETA-+----operand-+----------->< +-SETB-+ '-SETC-'
The first operand is assigned to the SET symbol denoted
by variable_symbol(subscript). Successive operands
are then assigned to successive positions in the SET symbol array.
If an operand is omitted, the corresponding element of the
array is unchanged. Consider the following example:
The first instruction declares &LIST as a subscripted
local SETA symbol. The second instruction assigns values to certain
elements of the array &LIST. Thus, the instruction
does the same as the following sequence:
|
Copyright IBM Corporation 1990, 2014
|