IBM Support

PM25921: GEN ISSUES MESSAGE ADB1847E WHEN PROCESSING A STORED PROCEDURE/S P WHICH CONTAINS A DECIMAL CONSTANT

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 issues a message ADB1847E
    when attempting to process a stored procedure / SP which
    contained a decimal constant in a DECIMAL AS COMMA environment.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Administration Tool         *
    *                 for z/OS who use DDL statements that         *
    *                 contains one of the following:               *
    *                                                              *
    *                 a) a decimal constant using a period         *
    *                 when running DB2 with DECIMAL AS             *
    *                 COMMA.                                       *
    *                                                              *
    *                 b) a procedure or function parameter         *
    *                 name matches the name of a DB2               *
    *                 built-in data type.                          *
    *                                                              *
    *                 c) the default value of an SQL variable      *
    *                 declaration in a native SQL procedure is     *
    *                 a negative value (e.g. -1).                  *
    ****************************************************************
    * PROBLEM DESCRIPTION: a) A parser error occurred when         *
    *                         processing a DDL statement that      *
    *                         contains a decimal constant with a   *
    *                         period (e.g.  3.).                   *
    *                                                              *
    *                      b) A parser error occurred when         *
    *                         the parameter name of a procedure    *
    *                         or function matches a DB2 built-in   *
    *                         datatype name.                       *
    *                                                              *
    *                      e.g. parser will fail with the          *
    *                           following because the parameter    *
    *                           name TIMESTAMP matches the DB2     *
    *                           built-in data type of TIMESTAMP:   *
    *                                                              *
    *                      CREATE PROCEDURE P1                     *
    *                         (TIMESTAMP TIMESTAMP)                *
    *                      CREATE DATABASE HELLO;                  *
    *                                                              *
    *                      c) The parser error occurred when the   *
    *                         default value of an SQL variable     *
    *                         declaration in a native SQL          *
    *                         procedure begins with a minus.       *
    *                      e.g.                                    *
    *                      --#SET TERMINATOR ?                     *
    *                      CREATE PROCEDURE P2                     *
    *                        BEGIN                                 *
    *                          DECLARE V1 INT DEFAULT -1;          *
    *                        END?                                  *
    ****************************************************************
    * RECOMMENDATION: Apply The PTF.                               *
    ****************************************************************
    a) A parser error occurred when processing a DDL
       statement that contains a decimal constant with a period
       (e.g.  3.).
    
    b) A parser error occurred for a native SQL procedure or
       function with an error message like the following
    
    Expected rparen or comma
    Error occurred when parsing the following stmt :
    
    CREATE PROCEDURE P1 (TIMESTAMP TIMESTAMP)
      CREATE DATABASE HELLO
    
    Token number =      6, Token = TIMESTAMP
    
    c) A parser error occurred for a native SQL procedure
       with an error message like the following:
    
    Invalid token after DEFAULT keyword - expected keyword
    constant or NULL
    
    Error occurred when parsing the following stmt :
    CREATE PROCEDURE P2 BEGIN DECLARE
    V1 INT DEFAULT -1; END
    Token number =      9, Token = -
    

Problem conclusion

  • The problems have been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM25921

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    720

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-11-04

  • Closed date

    2010-12-29

  • Last modified date

    2011-03-02

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

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

Modules/Macros

  •    ADB2PA   ADB2PA5
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RA10 PSY UK63573

       UP11/02/06 P F102

  • R720 PSY UK63574

       UP11/02/06 P F102

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 March 2011