Message queues

If you set CCSID processing on, system-supplied display files and printer files that display or print messages convert the CCSID of the message queue to the CCSID of the job before displaying or printing the messages.

To print and display the messages correctly, your job CCSID setting must be the same as the code page portion of your device CHRID setting.

All messages that existed on a message queue that was created in a release before V3R1 of the operating system are assigned CCSID 65535 on the first use of that message.

Determine the CCSID of a message queue

To determine the CCSID of a message queue, follow these steps:

  1. Type
    DSPMSG MSGQ(MYLIB/MYMSGQ) ASTLVL(*BASIC)
    where MYLIB is the library in which the message queue is stored and MYMSGQ is the name of the message queue.
  2. Press F22 (Display list details).
Note: You can also use the Retrieve Message Queue Attributes (QMHRMQAT) application programming interface (API) to determine the CCSID of a message queue.

For job message queues, system reply lists, and the history log, the object-level CCSID is always 65534. You cannot change nor display object-level CCSIDs for job message queues, system reply lists, and the history log.

Related concepts
Job message queues
System reply list
Related tasks
History log
Related reference
Retrieve Nonprogram Message Queue Attributes (QMHRMQAT) API