IC63337: CALLING A Z/OS STORED PROCEDURE WITH NULL INPUT PARMS FROM A JAVA PROGRAM, JCC T2 OR T4, RESULTS IN ERRORCODE=-4463

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Customer using JDBC JCC T2/T4 to call a z/OS DB2 Stored
    Procedure. They are using a NULL input parameter which results
    in a -4463 error code returned.
    
    
    
    
    To recreate the error use the SP below being called is a single
    line test SP.
    
    
    CREATE TABLE TEST (ID CHAR(20))!
    
    CREATE PROCEDURE TEST.SP_TEST
     (IN id CHAR(20))
     LANGUAGE SQL
    
    BEGIN
                  INSERT INTO TEST VALUES ('SP_TEST called');
    END!
    
    
    The CALL statement is coded as:
    
    CALL SP_TEST(NULL).
    
    The result is:
    Error parsing literal value starting at index 21.  Error
    Detail:
    Invalid character 'N' found in literal.  Full SQL
    statement
    text=CALL SP_TEST(NULL) ERRORCODE=-4463, SQLSTATE=42601.
    

Local fix

  • Use the Legacy Type 2 JDBC driver using db2java.zip.
    

Problem summary

  • Users affected: Users connecting to z/OS DB2 with Universal JDBC
    Type 4 driver
    
    Problem Description:
    Customer using JDBC JCC T2/T4 to call a z/OS DB2 Stored
    
    Procedure. They are using a NULL input parameter which results
    in a -4463 error code returned.
    
    
    
    
    To recreate the error use the SP below being called is a single
    line test SP.
    
    
    CREATE TABLE TEST (ID CHAR(20))!
    
    CREATE PROCEDURE TEST.SP_TEST
     (IN id CHAR(20))
     LANGUAGE SQL
    
    BEGIN
                  INSERT INTO TEST VALUES ('SP_TEST called');
    END!
    
    
    The CALL statement is coded as:
    
    CALL SP_TEST(NULL).
    
    The result is:
    Error parsing literal value starting at index 21.  Error
    Detail:
    Invalid character 'N' found in literal.  Full SQL
    statement
    text=CALL SP_TEST(NULL) ERRORCODE=-4463, SQLSTATE=42601.
    
    Problem Summary:
    
    Customer using JDBC JCC T2/T4 to call a z/OS DB2 Stored
    
    Procedure. They are using a NULL input parameter which result
    in a -4463 error code returned.
    
    
    
    
    To recreate the error use the SP below being called is a sing
    line test SP.
    
    
    CREATE TABLE TEST (ID CHAR(20))!
    
    CREATE PROCEDURE TEST.SP_TEST
     (IN id CHAR(20))
     LANGUAGE SQL
    
    BEGIN
                  INSERT INTO TEST VALUES ('SP_TEST called');
    END!
    
    
    The CALL statement is coded as:
    
    CALL SP_TEST(NULL).
    
    The result is:
    Error parsing literal value starting at index 21.  Error
    Detail:
    Invalid character 'N' found in literal.  Full SQL
    statement
    text=CALL SP_TEST(NULL) ERRORCODE=-4463, SQLSTATE=42601.
    

Problem conclusion

  • Problem first fixed in DB2 Version 9.5 fixpak 6.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC63337

  • Reported component name

    DB2 CONNECT

  • Reported component ID

    DB2CONNCT

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-09-23

  • Closed date

    2010-01-26

  • Last modified date

    2010-01-26

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

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

    IC63367 IC63557

Fix information

  • Fixed component name

    DB2 CONNECT

  • Fixed component ID

    DB2CONNCT

Applicable component levels

  • R950 PSY

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

DB2 for Linux, UNIX and Windows

Software version:

9.5

Reference #:

IC63337

Modified date:

2010-01-26

Translate my page

Machine Translation

Content navigation