I was looking into RPGLE opcode for numeric operations and stuck in z-add
and need an example of the z-add
opcode and how it works. Provide an example using z-add
in the RPGLE program.
Sorry, you do not have permission to ask a question, You must login to ask a question.
Sorry, you do not have permission to ask a question.
In
Z-ADD
, Factor 2 is added to a field of zeros. The result field contains the total. There is no use of Factor 1. Factor 2 and the result field must be in the numeric range and may include an array, an array element, a field, a named constant, a literal, a figurative constant, a subfield, or a table name. Sample code usingZ-ADD
in rpgle.