IBM Support

PH17238: SELECT WITH CASE RETURNS INCORRECT PRECISION

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • select * from (SELECT COALESCE(SUM(CAST(CASE WHEN A2."C2" IS
    NULL THEN 0.0 ELSE 1.0 END AS DECIMAL(31,0))),0) C0 FROM
    DVSQL.PB1A_TSDCV_TESTDATE A2)
    should return 4 instead of 40.
    -
    I changed "THEN 0.0 ELSE 1.0" to "THEN 0 ELSE 1" to get the
    correct result of 4 instead of 40.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: ALL USERS                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION: Select with CASE returns                *
    *                      incorrect precision                     *
    ****************************************************************
    * RECOMMENDATION: Apply the PTF                                *
    ****************************************************************
    .
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH17238

  • Reported component name

    DATA VIRT MGR Z

  • Reported component ID

    5698DVM00

  • Reported release

    110

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-09-23

  • Closed date

    2019-11-11

  • Last modified date

    2019-11-30

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

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

Modules/Macros

  • AVZ$E6DE AVZ$E6DM AVZ$E6VE AVZ$E6VM AVZ$U6D0 AVZ$U6V0 AVZOCXRL
    AVZOCXRU AVZOCXSV AVZODT9N AVZODTAN AVZODTBN AVZODTCN AVZOIMSR
    AVZOINAS AVZOPPA  AVZOSVTP AVZPB    AVZSQ29D AVZSQ29N AVZSQ2AD
    AVZSQ2AN AVZSQ2BD AVZSQ2BN AVZSQ2CD AVZSQ2CN AVZSQL9D AVZSQL9N
    AVZSQLAD AVZSQLAN AVZSQLBD AVZSQLBN AVZSQLCD AVZSQLCN
    

Fix information

  • Fixed component name

    DATA VIRT MGR Z

  • Fixed component ID

    5698DVM00

Applicable component levels

  • R110 PSY UI66359

       UP19/11/13 P F911

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":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"110","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
30 November 2019