IBM Support

JR42130: SQL0302N OR SQL30020N WHEN DOING ARRAY INSERT WITH A BIGINT TO VARGRAPHIC CONVERSION IN CLI

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A CLI based application may report either an SQL0302N or an
    SQL30020N error when it performs an array insert.   The problem
    would be caused by the application binding a column parameter as
    a NUMERIC value (like a BIGINT) even though the target column is
    defined as VARGRAPHIC.
    
    [IBM][CLI Driver][DB2/6000] SQL30020N  Execution of the
     command or SQL statement failed because of a syntax error in
    the communication
    data stream that will affect the successful execution of
    subsequent commands and
     SQL statements:  Reason Code "0x220E"("0133")"".
    SQLSTATE=58009
    
    [IBM][CLI Driver][DB2/6000] SQL0302N  The value of a host
    variable in the EXECUTE or OPEN statement
     is out of range for its corresponding use.
    
    
    The error message returned is dependent on the size of the
    array.
    

Local fix

  • 1) If possible, change the parameter definition to be a 'string'
    based such as SQL_VARGRAPHIC
    2) If possible, change the column definition of the table from
    VARGRAPHIC to BIGINT.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 Version 9.5, Fixpak 10                        *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 Version 9.5, Fixpak 10
    

Temporary fix

  • see Local Fix
    

Comments

APAR Information

  • APAR number

    JR42130

  • Reported component name

    DB2 UDB ESE WIN

  • Reported component ID

    5765F4101

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-03-01

  • Closed date

    2012-08-28

  • Last modified date

    2012-08-28

  • 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

    DB2 UDB ESE WIN

  • Fixed component ID

    5765F4101

Applicable component levels

  • R950 PSN

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEPGG","label":"DB2 for Linux, UNIX and Windows"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"950","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
28 August 2012