IBM Support

SE71857: Using MQRC to convert an MQ error log file to JSON format results in corrupt Japanese characters on IBM i

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When using the mqrc command to convert an MQ error file into
    JSON format on IBM i, corrupt message text is output. This
    occurs for languages other than English. For example, running
    the command:
     cat AMQERR01.LOG | mqrc -i text -o json -d ja_JP -
    results in output similar to the following:
    {
     "ibm_messageId" : "AMQ8004I",
     "ibm_arithInsert1" : 0,
     "ibm_arithInsert2" : 0,
     "ibm_commentInsert3" : "QM1",
     "ibm_datetime" : "2019-01-22T19:41:52.415Z",
     "ibm_serverName" : "MY_QMGR",
     "type" : "mq_log",
     "host" : "localhost.localdomain",
     "loglevel" : "INFO",
     "module" : "amqzxma0.c:1947",
     "ibm_sequence" : "1551828271_599749890",
     "ibm_processId" : "16961",
     "ibm_threadId" : "1??ƒ¼??‚¸??ƒ£??ƒ¼ 'MY_QMGR'
    ??Œ??µ‚??º????¾????Ÿ?? ‚"},
     "ibm_userName" : "user1",
     "ibm_installationName" : "Installation1",
     "message" : "AMQ8004I: IBM MQ ??‚­??ƒ¥??ƒ¼??ƒ»??ƒž??ƒ
    }
    

Local fix

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    Any users on IBM i using the JSON format of MQ error logs with a
    non-English language with DBCS messages, either by using the
    mqrc command with the JSON output option or by using the
    AMQ_ADDITIONAL_JSON_LOGS environment variable or the
    DiagnosticMessages stanza in the qm.ini file.
    
    
    Platforms affected:
    IBM iSeries
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    The JSON format error log files are created and tagged as
    holding text data in an EBCDIC codepage. However with error log
    records containing double byte character set (DBCS) characters
    the EBCDIC DBCS shift out/shift in (SO/SI) characters in JSON
    strings were incorrectly escaped using a JSON escape sequence.
    The following DBCS characters were then displayed to the user as
    incorrect single byte characters as they were not enclosed by a
    SO/SI pair.
    
    <span style="background-color:rgb(255, 255, 255)">The problem
    was corrected by not escaping the SO/SI characters when writing
    to the file.</span>
    

Problem conclusion

  • The MQ error reporting component on IBM i has been updated to
    correctly escape the affected SO/SI characters.
    
    ---------------------------------------------------------------
    The fix is targeted for delivery in the following PTFs:
    
    Version    Maintenance Level
    v9.1 LTS   9.1.0.7
    v9.2 LTS   9.2.0.2
    v9.x CD    9.2.2
    
    The latest available maintenance can be obtained from
    'WebSphere MQ Recommended Fixes'
    http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27006037
    
    If the maintenance level is not yet available information on
    its planned availability can be found in 'WebSphere MQ
    Planned Maintenance Release Dates'
    http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27006309
    ---------------------------------------------------------------
    

Temporary fix

Comments

APAR Information

  • APAR number

    SE71857

  • Reported component name

    IBM MQ ISERIES

  • Reported component ID

    5724H7274

  • Reported release

    910

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-07-31

  • Closed date

    2020-11-20

  • Last modified date

    2020-11-20

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    IBM MQ ISERIES

  • Fixed component ID

    5724H7274

Applicable component levels

[{"Line of Business":{"code":"LOB36","label":"IBM Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYHRD","label":"IBM MQ"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"910"}]

Document Information

Modified date:
21 November 2020