IBM Support

PM34549: HPU GENERATES INVALID LOAD STATEMENT WHEN VARCHAR DATA IS TO BE UNLOADED AS FIXED LENGTH FIELD

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An invalid LOAD statement is generated where a varchar data is
    to be unloaded as a fixed-length field by specifying the
    LENGTHBYTE NO option along with the USER format.
    
    The typical error is the lack of the data type name in the field
    specification such as in the following example where DBNAME is a
    VARCHAR(24) column converted into a fixed-length field by
    requesting FORMAT USER(COL DBNAME LENGTH MAX PADDING ' ').
    
    In such a case, the LOAD statement contains:
    DBNAME
         POSITION (     2  )          (    24 )
    
    instead of the expected following field specification:
    DBNAME
         POSITION (     2  )     CHAR (    24 )
    
    PB11097
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of DB2 High Performance Unload.        *
    ****************************************************************
    * PROBLEM DESCRIPTION: An invalid LOAD statement is generated  *
    *                      where a varchar data is to be unloaded  *
    *                      as a fixed-length field by specifying   *
    *                      the LENGTHBYTE NO option along with     *
    *                      the USER format. The typical error is   *
    *                      the lack of the data type name in the   *
    *                      field specification such as in the      *
    *                      following example where DBNAME is a     *
    *                      VARCHAR(24) column converted into a     *
    *                      fixed-length field by requesting        *
    *                      FORMAT USER(COL DBNAME LENGTH MAX       *
    *                      PADDING ' '). In such a case, the       *
    *                      LOAD statement contains:                *
    *                      DBNAME                                  *
    *                          POSITION (     2  )                 *
    *                      (    24 )                               *
    *                      instead of the expected following       *
    *                      field specification:                    *
    *                      DBNAME                                  *
    *                          POSITION (     2  )     CHAR        *
    *                      (    24 )                               *
    *                      Local fix : Add the TYPE CHAR           *
    *                      specification to get the correct LOAD   *
    *                      statement. In the above example,        *
    *                      replace FORMAT USER(COL DBNAME LENGTH   *
    *                      MAX PADDING ' ') by FORMAT USER(COL     *
    *                      DBNAME TYPE CHAR LENGTH MAX PADDING     *
    *                      ' ').                                   *
    *                      PB 11097                                *
    ****************************************************************
    * RECOMMENDATION: APPLY the PTF.                               *
    ****************************************************************
    The inzrload  module was changed to correctly handle the case
    where an implicit casting from varchar to char data is
    requested.
    

Problem conclusion

  • APPLY the PTF.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM34549

  • Reported component name

    DB2 HI PERF UNL

  • Reported component ID

    5697F4400

  • Reported release

    320

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-03-10

  • Closed date

    2011-10-25

  • Last modified date

    2011-12-02

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

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

Modules/Macros

  •    INZADBSK INZUTILK
    

Fix information

  • Fixed component name

    DB2 HI PERF UNL

  • Fixed component ID

    5697F4400

Applicable component levels

  • R320 PSY UK73227

       UP11/11/02 P F111

  • R410 PSY UK73228

       UP11/11/02 P F111

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":"SSAUUV","label":"IBM Db2 High Performance Unload for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"320","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
12 February 2021