Content
The result of the character-code conversion of the data stored in the data item of the DISPLAY statement, the STRING statement (writing 2), the UNSTRING statement (writing 2), and the WRITE statement of the print file changed to prevent an unjustified data error.
Character-code conversion of data beyond the limits of character-code set conversion origin
Before V11.0
It is converted into an alternative character.
After V11.0
It becomes a code conversion error when executing it, and the following messages (detailed code 42 (0x2a)) are output.
DISPLAY statement: JMP0086I-W
STRING statement (writing 2) and the UNSTRING statement (writing 2): An overflow condition has occurred. JMP0260I-U when ON OVERFLOW is not specified
WRITE statement of the print file: JMP0310I-I/U and JMP0320I-I/U (It is executed along with the execution result when the input-output error of the file occurs).
Character-code conversion of imperfect character
When a surrogate pair of the character-code is a high rank or only one of the subordinate positions is stored or the multi byte character is lacked. The result of converting such an imperfect character is different.
Before V11.0
The character is converted into the replacement character.
After V11.0
It becomes a code conversion error during execution, and the following messages (detail code 22 (0x16) or 42 (0x2a)) are output.
DISPLAY statement: JMP0086I-W
STRING statement (writing 2) and the UNSTRING statement (writing 2): An overflow condition has occurred. JMP0260I-U when ON OVERFLOW is not specified.
WRITE statement of the print file: JMP0310I-I/U and JMP0320I-I/U (It is executed along with the execution result when the input-output error of the file occurs).
Action
Correct to store a correct character-code in the data item that refers to a detailed message code when executing it.
Specify the execute environment variable @CBR_CONVERT_CHARACTER=SYSTEM expressly when you want to obtain the result similar to before V11.0.
However, it is not possible to specify it by the program using the specification after V11.0.
Refer to environment variable information @CBR_CONVERT_CHARACTER on the user's guide for details.