Start of change

CCSID conversions during input and output operations

When an alphanumeric, graphic, or UCS2 field is used in an input or output operation, CCSID conversion may be performed between the data in the field and the data in the input or output buffer for the file. A field is used in an input or output operation in the following cases:

CCSID conversion may also be performed by database for alphanumeric and graphic fields when placing the data from the record into the input buffer, when placing data from the output buffer into the record, or when interpreting the search argument for keyed operations.

CCSID conversion is performed between the data in the input or output buffer and the program field when all of the following conditions are true:
Warning: If the DATA keyword is not in effect for the file, or if the CCSID of an alphanumeric field is not considered to be known, RPG may make incorrect assumptions about the CCSID of alphanumeric data in a program when the job CCSID is 65535 at runtime.
End of change