*---------*---------------*-----------------*----------------*---------------* | CODE | FACTOR 1 | FACTOR 2 | RESULT | INDICATORS | | | | | FIELD | | *---------*---------------*-----------------*----------------*---------------* | Z-SUB | | Subtrahend | Difference | + - Z | | (1/2) | | | | | *---------*---------------*-----------------*----------------*---------------*
Factor 2 is subtracted from a field of zeros. The difference, which is the negative of factor 2, is placed in the result field. You can use the operation to change the sign of a field. Factor 1 is not used. Factor 2 must be numeric and can contain one of the following: an array, array element, field, figurative constant, literal, named constant, subfield, or table name.
The result field must be numeric, and can contain one of the following: an array, array element, subfield, or table name.
Half-adjust (position 53) can be specified.
For the rules for the Z-SUB operation, see Arithmetic Operations.
See Figure "Summary of Arithmetic Operations" for an example of the Z-SUB operation.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.