IBM Support

PH57667: PARSER ERROR WHEN GENERATING DDL FOR ADVANCED TRIGGER

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When generating DDL for an advanced trigger, the following error
    is produced:
    DDL: ADB2PA: The following statement could not be parsed :
    CREATE OR REPLACE TRIGGER TEST_FAIL NO CASCADE BEFORE UPDATE ON
    CODB023T REFERENCING NEW AS N OLD AS O FOR EACH ROW BEGIN ATOMIC
    SET N.COL1 = O. COL1 ; IF NOT(VALUE(N.COL2, 0) = VALUE(O.COL2,
    0)) THEN IF VALUE(N.COL2, 0) <> 0 THEN SET N.COL3 = 1 ; ELSE SET
    N.COL3 = 0 ; END IF ; ELSE SET N .COL3 = O.COL3 ; END IF ; END
    Token number = 31, Token = COL1 Unexpected token after . keyword
    - expected keyword BEGIN
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Db2 Administration Tool for z/OS    *
    ****************************************************************
    * PROBLEM DESCRIPTION: When attempting to use the GEN or DDL   *
    *                      line command on a trigger that does not *
    *                      have a DECLARE statement, the parser    *
    *                      returns an error at ADB2PA:             *
    *                      "Unexpected token after . keyword -     *
    *                      expected keyword BEGIN"                 *
    *                      The resulting DDL is unformatted.       *
    ****************************************************************
    When using the DDL or GEN line command against a trigger in the
    Db2 catalog, the line command fails with a parser error, because
    it is expecting a BEGIN statement:
    "Unexpected token after . keyword - expected keyword BEGIN"
    The resulting DDL is unformatted.
    

Problem conclusion

  • The problem has been addressed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH57667

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2023-10-19

  • Closed date

    2024-02-02

  • Last modified date

    2024-03-03

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

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

    UI95540 UI95541

Modules/Macros

  • ADB2PA
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RC10 PSY UI95540

       UP24/03/03 P F402

  • RD10 PSY UI95541

       UP24/03/03 P F402

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":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSZJXP","label":"DB2 Tools for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"C10","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
04 April 2024