IBM Support

PI36838: DDL/GEN OF STORED PROCEDURE RETURNS "UNEXPECTED TOKEN AFTER.. ADB2PA: THE FOLLOWING STATEMENT COULD NOT BE PARSED" ERROR.

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Using DDL or GEN line command on a stored procedure gets error:
    Unexpected token after = keyword - expected keyword "("
     ADB2PA: The following statement could not be parsed :
    
     followed by the CREATE PROCEDURE statement.
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Administration Tool for     *
    *                 z/OS who use the DDL/GEN line command        *
    *                 to generate a SQL stored procedure.          *
    ****************************************************************
    * PROBLEM DESCRIPTION: When using the DDL/GEN line command     *
    *                      on panel ADB21O 'Stored Procedures'     *
    *                      to generate a SQL stored procedure,     *
    *                      the following parser error was          *
    *                      observed:                               *
    *                                                              *
    *                      Unexpected token after = keyword        *
    *                      - expected keyword "("                  *
    *                      ADB2PA: The following statement         *
    *                      could not be parsed :                   *
    *                                                              *
    *                      The stored procedure has the            *
    *                      following syntax:                       *
    *                                                              *
    *                      CREATE PROCEDURE                        *
    *                      >schema<.>procedure_name<               *
    *                      ...                                     *
    *                      MERGE INTO ...                          *
    *                      WHEN MATCHED THEN                       *
    *                      UPDATE SET (>column_name<) =            *
    *                      column_value                            *
    *                      ...)                                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Using the DDL/GEN line command to generate a SQL stored
    procedure on panel ADB21O, the following parser error
    is observed:
    
    Unexpected token after = keyword - expected keyword "("
    ADB2PA: The following statement could not be parsed :
    
    ..)
    

Problem conclusion

  • Problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI36838

  • Reported component name

    DB2 ADMIN TOOL

  • Reported component ID

    568851500

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-03-12

  • Closed date

    2015-04-28

  • Last modified date

    2015-05-04

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

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

    UI27144 UI27145

Modules/Macros

  •    ADB2PA
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RA20 PSY UI27144

       UP15/05/01 P F504

  • RB10 PSY UI27145

       UP15/05/01 P F504

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":"11.1.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
04 May 2015