IBM Support

CCSIDCVT keyword: Enhancement for CCSID conversions

General Page

You are in: RPG Cafe > Enhancement for CCSID conversions

Short URL: http://ibm.biz/rpgcafe_ccsidcvt_kw

RPG Cafe: CCSIDCVT keyword

H spec keyword CCSIDCVT:

  • Get an exception when a CCSID conversion fails to convert all the data
  • Get a list of all the CCSID conversions in the module

Get a list of CCSID conversions in the module

Code CCSIDCVT(*LIST) to find out about all the CCSID conversions done in your module:

  • Explicit conversions such as %UCS2 and %CHAR
  • Implicit conversions such as assigning an alphanumeric value to a UCS-2 variable

The CCSIDCVT section in the listing includes warnings about any conversions that might result in loss of data.

Get an exception when a CCSID conversion fails to convert all the data

Code CCSIDCVT(*EXCP) to get an exception at run time when a CCSID conversion results in loss of data. Loss of data occurs when the target character set does not have a match for a character in the source data.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SS69QP","label":"Rational Development Studio for i"},"Component":"ILE RPG Compiler","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
09 January 2020

UID

ibm11108209