Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Converting DBCS data to EBCDIC - &SYSONEBYTE z/OS TSO/E CLISTs SA32-0978-00 |
|
Use the &SYSONEBYTE built-in function to convert character strings from the double-byte character set (DBCS) to the EBCDIC character set. &SYSONEBYTE converts only DBCS characters that have EBCDIC equivalents: the DBCS blank (X'4040') and DBCS characters that begin with the value X'42'. &SYSONEBYTE converts the DBCS characters that have EBCDIC equivalents by removing the first byte (X'40' or X'42'). The second byte, which remains, represents the character in EBCDIC. &SYSONEBYTE places DBCS delimiters around DBCS characters that are not convertible (those that lack EBCDIC equivalents). The following example represents a complete conversion from DBCS
to EBCDIC:
The following example represents a partial conversion from DBCS
to EBCDIC, assuming that d5 and d6 do not start with X'42' and
are not the hex blank (X'4040'):
|
Copyright IBM Corporation 1990, 2014
|