CPINFO

#### Search Results

Search

# CPINFO

This command is used to display all relevant Natural code page settings, such as content of the system variables `*LOCALE`, `*CODEPAGE`, current code page of the source area, current settings of the relevant parameters, ICU version, Unicode version, etc, and to display the code pages defined in the `NATCONFG` module.

#### Code Page Information

On the first screen, the following information is displayed:

Field | Explanation
--- | ---
*LOCALE | Shows the language and country of the current locale. See also system variable `*LOCALE`.
*CODEPAGE | Shows the IANA name of the code page currently used for conversions between Unicode and code page format, and is set by the profile parameter `CP`. See also system variable `*CODEPAGE`.
Source area CP | Shows the current code page of the source area. See also profile parameter `CP`.
CPOBJIN | Specifies the code page in which the batch input file for data is encoded. See also profile parameter `CPOBJIN`.
CPSYNIN | Specifies the code page in which the batch input file for commands is encoded. See also profile parameter `CPSYNIN`.
CPPRINT | Specifies the code page in which the batch output file shall be encoded. See also profile parameter `CPPRINT`.
CPCVERR | Specifies whether a conversion error that occurs when converting from U format to A format or from A format to U format or between A formats with different code pages results in a Natural error or not. See also profile parameter `CPCVERR`.
SRETAIN | Specifies that all existing sources have to be saved in their original encoding format. See also profile parameter `SRETAIN`.
CFICU | Enables Unicode support for various Unicode settings. See also profile parameter `CFICU`.
OPRB ACODE/WCODE | These values represent the key of supplied encoding for A fields and W fields during the user session for a given DBID. To change the DBID for OPRB ACODE/WCODE, press PF4. A window is displayed in which you can change the DBID for `OPRB ACODE/WCODE`.
CMPO CPAGE | Shows the current setting of the `CPAGE` option, which can be used to activate a conversion routine which translates all alphanumeric constants (from the code page that was active at compilation time into the code page that is active at runtime) when the object is started at runtime. See also keyword subparameter `CPAGE` of profile parameter `CMPO`.
WEBIO | Contains either the value of the system variable `*BROWSER-IO` or the value `OFF`. See also profile parameter `WEBIO`.
ICU version | Shows the current ICU version.
Unicode version | Shows the current Unicode version.
ICU module type | Shows the current implementation of the ICU library.

Press Enter to continue.

On the second screen, the following information is displayed:

Field | Explanation
--- | ---
Product | Product name: International Components for Unicode for Software AG (ICS)
Product code | ICS
Product version | ICS product version
Cumulated fix | Cumulated fix (if available and applied) for the current ICS product version
Architecture level | IBM architecture level The default is zero (`0`) denoting that no architecture level is used.
Revision | ICS revision number
ICU version | ICU version supported by ICS
Unicode version | Unicode version supported by ICS

#### Displaying Code Pages Defined in NATCONFG

Set the field `Display code pages defined in NATCONFG (Y/N)` to `Y` and press Enter.

Or press PF5 (NTCPG).

All code pages that are predefined in the macro `NTCPAGE` of source module `NATCONFG` are displayed.

Field | Explanation
--- | ---
Container Name | The internal ICU name (first 20 characters only).
IANA Name | The standard name of the code page (first 20 characters only).
CCSID | Coded Character Set Identifier. This identifier denotes the character set as identified by IBM.
First Alias Name | First defined alternate name for the code page (first 20 characters only).
D/E | This column shows the status of the code page in the source module `NATCONFG`.
`E` | Code page is defined in the `NATCONFG` module, and is enabled.
`D` | Code page is defined in `NATCONFG`, but is disabled.

#### Further Information

See also:

- Unicode and Code Page Support

- SYSCP Utility - Code Page Administration