IBM Support

PM35522: MISSING SEMI-COLON AFTER SQL_VARIABLE_DECLARATION GOC2DTC - UNSUCCESSFUL COMPLETION

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Users of DB2 Object Compare Tool for z/OS who compare DDL for
    Stored Procedures NSP can experience compare failure, rc16 ,
    in jobstep S01DDL when variable default minus 1 is parsed.
    .
    Error messages appear like:
    .
    Unsuccessful parse of DDL statement. DTC function is terminated.
    Missing semi-colon after sql_variable_declaration
    Error occurred when parsing the following stmt :
    .
    CREATE PROCEDURE ...
     begin
        declare V_ID_STATUS_CANCEL decimal( 19, 0) default - 1 ;
    

Local fix

  • Change the 'begin' to upper case 'BEGIN' will work-around the
    error.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the DB2 Object Comparison Tool for  *
    *                 z/OS who use a lower case keyword in a User  *
    *                 Defined Function ( UDF ) or stored           *
    *                 procedure.                                   *
    ****************************************************************
    * PROBLEM DESCRIPTION: The DB2 Object Compare DDL Reader       *
    *                      ignored the lower case keyword BEGIN    *
    *                      which results in a parsing error:       *
    *                                                              *
    *                      "Missing semi-colon after               *
    *                      sql_variable_declaration" or GOC2DTC -  *
    *                      Unsuccessful completion."               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A parser error was issued when the lower case keyword BEGIN was
    detected.  The DTC function is terminated.
    

Problem conclusion

  • The problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM35522

  • Reported component name

    DB2 OBJECT COMP

  • Reported component ID

    5697G6400

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-03-23

  • Closed date

    2011-07-19

  • Last modified date

    2011-08-01

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

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

    UK69920 UK69921

Modules/Macros

  •    ADBCDTS  ADB2ISQ
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RA10 PSY UK69920

       UP11/07/22 P F107

  • R720 PSY UK69921

       UP11/07/22 P F107

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

Document Information

Modified date:
01 August 2011