History log

The history log is a database file that is tagged with CCSID 65535. You cannot change the CCSID of the history log. No conversions occur when you do database retrievals from the history file.

You can use CCSID processing when working with the history log. The CCSID of the replacement data or immediate message text is added to the history log record. If the history log record is for a stored message, CCSID processing occurs only for the *CCHAR replacement data in that record.

You can retrieve a message from the history log and convert it into a specific CCSID by following these steps:

  1. Obtain the input variables &MSGFL, &MSGF, &MSGID, &MSGDTA, and &MDTACCSID, from the history log record. (See the CL Programming PDF for the layout of the history log record.)
  2. Enter the following Retrieve Message command:
    RTVMSG MSGF(&MSGFL/&MSGF); MSGID(&MSGID); MSGDTA(&MSGDTA);  +
    MDTACCSID(&MDTACCSID); MSG(&MSG);

If you set CCSID processing on, system-supplied display files and printer files that display or print history log records convert the CCSID of the messages 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.

Related concepts
Message queues
Job message queues
Related information
CL Programming