IBM Support

IT19594: CLI0112E FROM DB2BATCH JOB

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • db2batch returning CLI0112E message in some situations when NULL
    is being passed on run-time.
    
    To recreate the problem:
    
    Create a table :
    create table test1 (AIRRES_URID BIGINT);
    
    Create and save one SQL in a file :
    $ cat test1.sql
    SELECT AIRRES_URID from test1 where AIRRES_URID =
    COALESCE(?,AIRRES_URID);
    
    Create  a parameter input file :
    $ cat param1.txt
    Null
    
    Then  run db2batch in following way,
    $ db2batch -d sample -f test1.sql -m param1.txt -i complete -iso
    UR -o p 5 o 5 r -1 -r db2batch.out
    ** CLI error in executing the SQL statement:
    (-99999): [IBM][CLI Driver] CLI0112E  Error in assignment.
    SQLSTATE=22005
    

Local fix

  • Avoid  passing the parameter "Null" during run-time.  Instead,
    put the same  inside the query before running.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * ALL                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 11.1 Mod 2 Fix Pack 2 or higher               *
    ****************************************************************
    

Problem conclusion

  • First fixed in DB2 11.1 Mod 2 Fix Pack 2
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT19594

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-03-08

  • Closed date

    2017-06-23

  • Last modified date

    2017-06-23

  • 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 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
29 June 2020