IBM Support

PH47361: MQ Z/OS: THE QLOAD UTILITY REPORTS "INVALID ATTRIBUTE LINE" DURING THE LOAD OF A DATA SET THAT IS LARGER THAN 2GB

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The MQ SupportPac MO03 has been integrated into the product as
    the IBM MQ Queue load / unload utility.  For z/OS, the utility
    is available as load module CSQUDMSG in SCSQLOAD with QLOAD as
    an alias. Sample JCL is available as CSQ4QLOD in SCSQPROC.
    
    The offload of a queue with a large queue depth works, but the
    reload fails with mqrc 2208 MQRC_FILE_SYSTEM_ERROR, showing
    "INVALID ATTRIBUTE LINE". For example:
    
    Unload:
    ********************************* TOP OF DATA ***********
    Read    - Files:   0  Messages:1294383  Bytes:1246490829
    Written - Files:   1  Messages:1294383  Bytes:1246490829
    ******************************** BOTTOM OF DATA *********
    
    Reload:
    ********************************* TOP OF DATA *************
    Invalid attribute line on line 68560869 of file 'DD:RELOAD'
    Read    - Files:   1  Messages:1008248  Bytes: 970942824
    Written - Files:   0  Messages:1008248  Bytes: 970942824
    ******************************** BOTTOM OF DATA ***********
    
    The problem occurs when processing an input dataset which is
    larger than 2GB.
    
    Another variation of the problem has been observed when
    reloading a previously saved dataset which was saved using
    '-dw512' or greater. The reload job fails with MQRC 2208
    MQRC_FILE_SYSTEM_ERROR showing the error
    "Expected message at line". For example:
    
    Reload:
    ********************************* TOP OF DATA *************
    Expected message at line 33 of file 'DD:HERE'
    Read    - Files:   1  Messages:0  Bytes:0
    Written - Files:   0  Messages:0  Bytes:0
    ******************************** BOTTOM OF DATA ***********
    
    In this case, using a dw value of 512 results in the message
    data in the output dataset getting written in 512 byte chunks.
    The data is stored in hex characters with each line prefixed by
    string 'X '. This results in 512 bytes of message data
    requiring 1026 (512*2 + 2) characters in the output data set.
    
    The code which reads lines from a dataset to be loaded onto a
    queue does so 1024 bytes at a time. It then scans that output
    to find a newline character. If it doesn't find one then it
    correctly determines that it must have only read a part of the
    line. It will then acquire a bigger read buffer and rewind the
    file to reread the line.
    
    Unfortunately the rewind of the file (fseeko) fails. When the
    line is subsequently reread it won't contain the leading 'X '.
    The code detects this and returns MQRC 2208
    (MQRC_FILE_SYSTEM_ERROR).
    

Local fix

  • For the original problem keep the file size smaller than 2GB.
    For the additional problem do not use the -dw option or use a
    value less than 512.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All users of IBM MQ for z/OS Version 9       *
    *                 Release 2 Modification 0 and                 *
    *                 Release 3 Modification 0.                    *
    ****************************************************************
    * PROBLEM DESCRIPTION: When using the CSQUDMSG or QLOAD        *
    *                      utilities to restore the contents of    *
    *                      a previously saved queue, the restore   *
    *                      process may fail if the size of the     *
    *                      input file exceeds 2GB.                 *
    ****************************************************************
    When using the CSQUDMSG or QLOAD utility (also known as
    dmpmqmsg) to restore the contents of a queue previously saved
    using the utility, if the size of the input file exceeds 2GB
    then the restore process may fail. The error reported may
    include the text: "Invalid attribute line on line...
    

Problem conclusion

  • Processing has been amended to allow input files greater than
    2GB to be correctly accessed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH47361

  • Reported component name

    IBM MQ Z/OS V9

  • Reported component ID

    5655MQ900

  • Reported release

    200

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-06-20

  • Closed date

    2022-09-02

  • Last modified date

    2023-05-01

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

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

    UI82230 UI82231

Modules/Macros

  • CMQUDFNC
    

Fix information

  • Fixed component name

    IBM MQ Z/OS V9

  • Fixed component ID

    5655MQ900

Applicable component levels

  • R200 PSY UI82231

       UP22/09/17 P F209

  • R300 PSY UI82230

       UP22/09/17 P F209

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYHRD","label":"IBM MQ"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"200","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
01 May 2023