CPCVERR - Code Page Conversion Error

#### Search Results

Search

# CPCVERR - Code Page Conversion Error

This Natural profile and session parameter specifies whether a conversion error that occurs when converting

- from Unicode to code page or

- from code page to Unicode or

- from one code page to another code page

results in a Natural error or not. Anyway, after the conversion, the target operand will contain the conversion result where all characters which can not be converted will be replaced by a substitution character which is defined by ICU for the affected code page.

Notes:

1. This parameter is not regarded for the conversion of Natural sources when loading them into the source area or during catalog.
2. On mainframe platforms, it is not regarded whether a Unicode field is converted into the code page before an I/O on a terminal emulation. In this case, the substitution character is replaced by the placeholder character which is defined in `NATCONFG`.

Possible settings | `ON` | A Natural error NAT3413 is issued, if at least one code point could not be translated correctly during ICU conversion.
`OFF` | No error is generated if one or more code points could not be translated correctly during ICU conversion.
Default setting | `ON` |
Dynamic specification | yes |
Specification within session | yes |
Applicable statements | `SET GLOBALS` |
Applicable command | `GLOBALS` |

See also:

- Profile Parameters in the Unicode and Code Page Support documentation.

- Using an Error Transaction Program in the Programming Guide