IBM Support

PM41279: Error: Stored producedure doing insert of col blob

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Environment:
    - Windows XP
     - Rational Bussiness Developer v 7.1.05
    Reproducible Y/N: Y
    Description of problem:
    
    User execute the sql containing the table and the strored proc.
    
    Try to call the stored proc using the database explorer in rdb
    
    without problem. Then they try to call this stored proc  in a
    EGL project
    and there is this (EGL0504E EXECUTE) . The stored procedure
    fails when there is a insert of .doc file and
    .pdf file, those are BLOB fields.
    
    
    created a little project (in attachment) with a simple program
    (testblob) that read two different files and call the stored
    proc using
    the blob from this file.
    
    
    For the .doc file, the exception is:
    THE VALUE OF INPUT HOST VARIABLE OR PARAMETER NUMBER 3 CANNOT BE
    USED
    AS SPECIFIED BECAUSE OF ITS DATA
    TYPE[sqlstate:42895][sqlcode:-301]
    
    
    For the .pdf file, the exception is:
    
    [ibm][db2][jcc][t4][20111][11372] The value of a host variable
    is too
    large for its corresponding use.  Host
    variable=3.[sqlstate:00000]
    [sqlcode:-99999]
    
    Workaround:
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When passing a blob as a parameter to a DB2 stored
    procedure, the operation may fail with either of these two
    errors:
    1. "THE VALUE OF INPUT HOST VARIABLE OR PARAMETER NUMBER 3
    CANNOT BE USED AS SPECIFIED BECAUSE OF ITS DATA
    TYPE[sqlstate:42895][sqlcode:-301]"
    2. "The value of a host variable is too large for its
    corresponding use."
    

Problem conclusion

  • The problem has been fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM41279

  • Reported component name

    RBD EGL FOR COB

  • Reported component ID

    5724S5001

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-06-10

  • Closed date

    2011-08-10

  • Last modified date

    2011-08-10

  • 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

    RBD EGL FOR COB

  • Fixed component ID

    5724S5001

Applicable component levels

  • R710 PSN

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.1","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
27 October 2021