IBM Support

IC79644: REDISTRIBUTE CALLED USING ADMIN_CMD FUNCTION RETURNS SYNTAX ERROR IF TABLE ONLY OR TABLE FIRST OPTION IS USED

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • If Redistribute is called using the ADMIN_CMD and the
    redistribute command contains a TABLE FIRST or TABLE ONLY the
    following syntax error is returned:
    
    SQL0104N  An unexpected token "END-OF-STATEMENT" was found
    following "FIRST".
    Expected tokens may include:  "EXCLUDE".  SQLSTATE=42601
    
    The interpreter handles the EXCLUDE option as required even
    though it's optional. Calling redistribute without a TABLE
    option does not hit this problem.
    
    This only affects REDISTRIBUTE called through ADMIN_CMD. Calling
    REDISTRIBUTE from the command line does not have this problem.
    

Local fix

  • Don't call REDISTRIBUTE using the ADMIN_CMD option, or don't
    specify the TABLE FIRST or TABLE ONLY option when calling
    redistribute using ADMIN_CMD.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users of REDISTRIBUTE using the ADMIN_CMD function.          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description.                                       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 V9.7 Fix Pack 6.                              *
    ****************************************************************
    

Problem conclusion

  • Fixed in DB2 V9.7 Fix Pack 6.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC79644

  • 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-11-06

  • 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:

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC79644

Modified date: 06 June 2012