Alphanumeric to DBCS data conversion (IGZCA2D)
The Language Environment® IGZCA2D service routine converts alphanumeric data that contains double-byte characters to pure DBCS data.
To use the IGZCA2D service routine, pass the following four
parameters to the routine by using the
- The sending field for the conversion, handled as an alphanumeric data item.
- The receiving field for the conversion, handled as a DBCS
You cannot use reference modification with parameter-2.
- The number of bytes in parameter-1 to
It can be the
LENGTH OFspecial register of parameter-1, or a 4-byte
USAGE IS BINARYdata item containing the number of bytes of parameter-1 to be converted. Shift codes count as 1 byte each.
- The number of bytes in parameter-2 that
will receive the converted data.
It can be the
LENGTH OFspecial register of parameter-2, or a 4-byte
USAGE IS BINARYdata item containing the number of bytes of parameter-2 to receive the converted data.
- You can pass parameter-1, parameter-3,
and parameter-4 to the routine
BY CONTENT, but you must pass parameter-2
- The compiler does not perform syntax checking
parameters. Ensure that the parameters are correctly set and passed
CALLstatement to the conversion routine. Otherwise, results are unpredictable.
- When creating parameter-2 from parameter-1,
IGZCA2D makes these changes:
- Removes the shift codes, leaving the DBCS data unchanged
- Converts the single-byte (nonspace) EBCDIC character X'nn' to a character represented by X'42nn'
- Converts the single-byte space (X'40') to DBCS space (X'4040'), instead of X'4240'
- IGZCA2D does not change the contents of parameter-1, parameter-3, or parameter-4.
- The valid range for the contents of parameter-3 and for the contents of parameter-4 is 1 to 134,217,727.
IGZCA2D return codes