IBM Support

IC77954: SQL0303N IS RETURNED WHEN SELECTING VALUES OF ZOS DATA TYPES TIMESTAMP_TIMEZONE

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • SQL0303N is returned when selecting values of zOS data types
    TIMESTAMP_TIMEZONE
    We dont get the error in V9.7 FP1
    
    CREATE TABLE
    TBL1
    (
    ID INTEGER
    ,TMSTZ_12 TIMESTAMP (12) WITH TIMEZONE
    ,TMS_12 TIMESTAMP (12)
    )
    
    db2 select TMSTZ_12 from TBL1
    
    TMSTZ_12
    
    
    ----------------------------------------------------------------
    ----------------
    ----------------------------------------------------------------
    ----------------
    
    SQL0303N  A value cannot be assigned to a host variable in the
    SELECT, VALUES,
    FETCH or assignment statement because the data types are not
    compatible.
    SQLSTATE=42806
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * DB2 V9.7                                                     *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * SQL0303N is returned when selecting values of zOS data types *
    * TIMESTAMP_TIMEZONE                                           *
    * We dont get the error in V9.7 FP1                            *
    *                                                              *
    * CREATE TABLE                                                 *
    * TBL1                                                         *
    * (                                                            *
    * ID INTEGER                                                   *
    * ,TMSTZ_12 TIMESTAMP (12) WITH TIMEZONE                       *
    * ,TMS_12 TIMESTAMP (12)                                       *
    * )                                                            *
    *                                                              *
    * db2 select TMSTZ_12 from TBL1                                *
    *                                                              *
    * TMSTZ_12                                                     *
    *                                                              *
    *                                                              *
    * ------------------------------------------------------------ *
    * ----                                                         *
    * ----------------                                             *
    * ------------------------------------------------------------ *
    * ----                                                         *
    * ----------------                                             *
    *                                                              *
    * SQL0303N  A value cannot be assigned to a host variable in   *
    * the                                                          *
    * SELECT, VALUES,                                              *
    * FETCH or assignment statement because the data types are not *
    * compatible.                                                  *
    * SQLSTATE=42806                                               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to V9.7 FP6                                          *
    ****************************************************************
    

Problem conclusion

  • First fixed in in V9.7 FP6
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC77954

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-08-05

  • Closed date

    2012-06-06

  • Last modified date

    2012-06-06

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

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

    IC84437

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSY

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC77954

Modified date: 06 June 2012