IBM Support

IT20155: CREATE MASK FAILING WITH BOOLEAN LITERAL VALUE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Create Mask is failing with Boolean Literal Values, eg for the
    below query its failing.
    
    db2 "CREATE MASK TEST.MASK1 ON TEST.TABLE0 FOR COLUMN C6 RETURN
    CASE WHEN C6 = TRUE THEN C1 ELSE 'NO ENTRY' END ENABLE"
    
    DB21034E The command was processed as an SQL statement because
    it was not a
    valid Command Line Processor command. During SQL processing it
    returned:
    SQL20474N The CREATE PERMISSION or CREATE MASK statement failed
    on the
    database object "TEST.MASK1" of object type "MASK" due to reason
    code "21".
    SQLSTATE=428HB
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All                                                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to fp2 for resolution of this defect.                *
    ****************************************************************
    

Problem conclusion

  • The error is removed for Boolean Internals.
    Problem was first fixed in DB2 11.1 db2v11m1fp2
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT20155

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-04-11

  • Closed date

    2017-06-23

  • Last modified date

    2017-06-23

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

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

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEPGG","label":"Db2 for Linux, UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
29 June 2020