Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
DS instruction HLASM Language Reference SC26-4940-06 |
|
The DS instruction:
.-,-------. V | >>-+--------+--DS----operand-+--------------------------------->< '-symbol-'
A DS operand has this format:
>>-+--------------------+--type--+----------------+-------------> '-duplication_factor-' '-type_extension-' >--+--------------+--+----------+--nominal_value--------------->< '-program_type-' '-modifier-' The format of the DS operand is identical to that of the DC operand; exactly the same subfields are used and are written in exactly the same sequence as they are in the DC operand. For more information about the subfields of the DC instruction, see DC instruction. Unlike the DC instruction, the DS instruction causes no data to be assembled. Therefore, you do not have to specify the nominal value (sixth subfield) of a DS instruction operand. The DS instruction is the best way of symbolically defining storage for work areas, input and output buffers, and so on. Although the formats are identical, there are two differences in
the specification of subfields. They are:
If symbol denotes an ordinary symbol, the ordinary symbol,
as with the DC instruction:
If the DS instruction is specified with more than one operand or more than one nominal value in the operand, the label addresses the area reserved for the field that corresponds to the first nominal value of the first operand. The length attribute value is equal to the length explicitly specified or implicit in the first operand. |
Copyright IBM Corporation 1990, 2014
|