IBM Support

Changing QCCSID System Value May Impact Printed Output

Troubleshooting


Problem

When changing the QCCSID ( Coded Character Set Identifier ) system value, the QCHRID ( Graphic Character Set and Code Page ) system value may also be changed. However, when changing the QCCSID system value back to the previous value, the QCHRID system value may not be changed. Among other things, this can potentially cause spooled files to print with incorrect characters.

Symptom

Wrong or unexpected characters in printed output.

Cause

From the help text of the QCCSID (Coded Character Set Identifier) system value:
... QCCSID and the code page of QCHRID must always be compatible. If QCCSID is changed to a value that is not compatible to the code page of QCHRID, QCHRID will be automatically changed.

From the help text of the QCHRID (Graphic Character Set and Code Page) system value:
... This system value may be changed automatically when QCCSID is changed.

An example:
Current values for QCCSID and QCHRID system values:
QCCSID: 65535
QCHRID: Character Identifier 697 and Code Page 37

When changing the QCCSID system value from 65535 to 1141 using WRKSYSVAL option 2, the following message is shown at the bottom of the screen:
System value QCCSID and QCHRID changed. (Message CPF1853)
The message details state: Because system value QCCSID was changed from 65535 to 1141, system value QCHRID was changed from 00000006970000000037 to 00000006950000001141.

Displaying the QCHRID system value shows it was changed as the message reported to Character Identifier 695 and Code page 1141. QCHRID is now compatible with the new QCCSID value.

Changed values for QCCSID and QCHRID system values:
QCCSID: 1141
QCHRID: Character Identifier 695 and Code Page 1141

When changing the QCCSID system value back from 1141 to 65535 using WRKSYSVAL option 2, the following message is shown at the bottom of the screen:
System value QCCSID changed from 1141 to 65535. (Message CPF1805)

The QCHRID system value is not changed because CCSID 65535 is compatible with CHRID 697 / 1141.

Changed values for QCCSID and QCHRID system values:
QCCSID: 65535
QCHRID: Character Identifier 695 and Code Page 1141

If the QCHRID system value needs to be changed back to the original value, it must be changed manually.

Diagnosing The Problem

Display/Print the QSSCID and QCHRID system values before changing to know the current values.
DSPSYSVAL SYSVAL(QCCSID) OUTPUT(*PRINT)
DSPSYSVAL SYSVAL(QCHRID) OUTPUT(*PRINT)

Print all of the system values before and after making any changes so the values can be checked and changed back as needed.
WRKSYSVAL SYSVAL(*ALL) OUTPUT(*PRINT)

Display the job log after changing any system value and review for messages, such as CPF1853 to see if any other system values were changed.
DSPJOBLOG OUTPUT(*PRINT)

Search the history log for message CPF1805: System value &1 changed from &2 to &3.
DSPLOG OUTPUT(*PRINT) MSGID(CPF1805)

Resolving The Problem

Manually change the QCHRID system value back to the previous value. Spooled files may need to be regenerated depending on the system environment.

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.1.0"}]

Document Information

Modified date:
18 December 2019

UID

nas8N1021732