IBM Support

PH25099: DB2 ADMIN TOOL: PARSING FAILURE ON SQL USING THE MINUS KEYWORD

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Db2 Admin Tool: The parser does not support the MINUS
    keyword.
    
    ADB2PA: The following statement could not be parsed
    
    For example:
    
    (SELECT * FROM T1)
      MINUS DISTINCT
    (SELECT * FROM T2);
    
    This can be rewritten
    
    (SELECT * FROM T1)
      EXCEPT DISTINCT
    (SELECT * FROM T2);
    

Local fix

  • There is a workaround which is to use EXCEPT
     instead of MINUS in the DDL.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of the Db2 Administration Tool for     *
    *                 z/OS or Db2 Object Comparison Tool for z/OS. *
    ****************************************************************
    * PROBLEM DESCRIPTION: The Reverse Engineering (GEN) program   *
    *                      fails with a parser error when the DDL  *
    *                      for an object contains MINUS.           *
    ****************************************************************
    GEN fails with the following error when
    MINUS is used as a synonym for EXCEPT:
    
    Unable to generate [object type].
    ADB2PA: The following statement could not be parsed :
    Token number = nnn, Token = [keyword]
    

Problem conclusion

  • The problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH25099

  • 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

    2020-05-06

  • Closed date

    2020-07-31

  • Last modified date

    2020-09-01

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

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

    UI70849

Modules/Macros

  • ADB2PA
    

Fix information

  • Fixed component name

    DB2 ADMIN TOOL

  • Fixed component ID

    568851500

Applicable component levels

  • RC10 PSY UI70849

       UP20/08/04 P F008

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"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.1.0","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
12 February 2021