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 place holder character which is defined in NATCONFG.
  3. If CPCVERR is ON, the Natural output window will not accept characters which are not contained in the current code page for A format fields. If CPCVERR is OFF, all characters will be accepted for A format fields. The runtime will then replace the characters which are not contained in the current code page with the substitution character of this code page (or parameter SUBCHAR, if defined).
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: