IGZCD2A return codes

IGZCD2A sets the RETURN-CODE special register to reflect the status of the conversion.

Table 1. IGZCD2A return codes
Return code Explanation
0 parameter-1 was converted and the results were placed in parameter-2.
2 parameter-1 was converted and the results were placed in parameter-2. parameter-2 was padded on the right with single-byte spaces.
4 parameter-1 was converted and the results were placed in parameter-2. parameter-2 was truncated on the right.1
14 parameter-1 and parameter-2 were overlapping. No conversion occurred.
15 The value of parameter-3 or parameter-4 was out of range. No conversion occurred.
16 An odd number of bytes was coded in parameter-3. No conversion occurred.
  1. If a truncation occurs within the DBCS characters, the truncation is on an even-byte boundary and a shift-in (SI) is inserted. If necessary, the alphanumeric data is padded with a single-byte space after the shift-in.