Understanding Character Set Conversion
The COBOL Unicode conversion utility for z/OS updates COBOL programs to use Unicode for all character data for internal processing, including numbers and date. However, there maybe cases where the Unicode data must be converted to non-Unicode character set, typically when communicating with external systems that do not fully support Unicode.
The following table lists IBM Enterprise COBOL statements and functions that convert between Unicode and non-Unicode character sets.
| Statement/Function | Description |
|---|---|
|
MOVE |
This statement converts data in system EBCDIC character set to Unicode in the following syntax:
Note:
Using the statement |
|
DISPLAY-OF() |
This function converts data from Unicode to a non-Unicode character. The DISPLAY-OF() function has two forms:
|
|
NATIONAL-OF() |
This function converts data from a non-Unicode character set to Unicode. NATIONAL-OF() function has two forms:
|
Note:
To change the newline characters, use one of transformations - NewLine LF, NewLine CR, or NewLine CRLF at the end of the command. This utility is available to use in the bin directory.