IBM Support

PM42852: ADB5146E UNEXPECTED SQLCODE IN :SELECT SYSTABLEPART DEF2 SQLCODE -304 / SQLCODEN304 11/07/18 PTF PECHANGE

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The DB2 Administration Tool for z/OS based APPLY job fails
    with a message:
    ADB5146E Unexpected SQLCODE in :SELECT SYSTABLEPART DEF2
    DSNT408I SQLCODE = -304, ERROR:  A VALUE WITH DATA TYPE INTEGER
    CANNOT BE ASSIGNED TO A HOST VARIABLE BECAUSE THE VALUE IS NOT
    WITHIN THE RANGE OF THE HOST VARIABLE IN POSITION 1 WITH DATA
    TYPE SMALLINT
    DSNT418I SQLSTATE   = 22003 SQLSTATE RETURN CODE
    DSNT415I SQLERRP    = DSNXROHB SQL PROCEDURE DETECTING ERROR
    when the SYSIBM.SYSTABLEPART.SPACE column contains a value
    greater than 32768.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Administration Tool for     *
    *                 z/OS.                                        *
    ****************************************************************
    * PROBLEM DESCRIPTION: When running an ADMINIF DEFINEYES       *
    *                      command in a work statement list ( WSL) *
    *                      and the space of a single partition of  *
    *                      the table space exceeds 32768, you will *
    *                      receive the following error:            *
    *                                                              *
    *                      ADB5146E Unexpected SQLCODE in :SELECT  *
    *                      SYSTABLEPART DEF2                       *
    *                      DSNT408I SQLCODE = -304, ERROR:  A      *
    *                      VALUE WITH DATA TYPE INTEGER CANNOT BE  *
    *                      ASSIGNED TO A HOST VARIABLE BECAUSE     *
    *                      THE VALUE IS NOT WITHIN THE RANGE OF    *
    *                      THE HOST VARIABLE IN POSITION 1 WITH    *
    *                      DATA TYPE SMALLINT                      *
    *                      DSNT418I SQLSTATE   = 22003 SQLSTATE    *
    *                      RETURN CODE                             *
    *                      DSNT415I SQLERRP    =  DSNXROHB SQL     *
    *                      PROCEDURE DETECTING ERROR               *
    *                      SQLCODEN304.                            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The ADBTEP2 logic has now changed to handle much larger values
    to be returned in this column to avoid this error.
    

Problem conclusion

  • Problem has been resolved.  Existing Work Statement Lists
    ( WSL ) will not be affected.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM42852

  • Reported component name

    DB2 OBJECT COMP

  • Reported component ID

    5697G6400

  • Reported release

    720

  • Status

    CLOSED PER

  • PE

    YesPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-06-30

  • Closed date

    2011-08-11

  • Last modified date

    2011-09-02

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

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

    UK70734

Modules/Macros

  •    ADBTEPR  ADBTEP2
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RA10 PSY UK70734

       UP11/08/16 P F108

  • R720 PSY UK70735

       UP11/08/16 P F108

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSCVQTD","label":"IBM Db2 Administration Tool for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"720","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
02 September 2011