IBM Support

PH51525: INCORRECT WARNING WITH MOVE STATEMENTS ASSOCIATED WITH DECIMAL(9,4) TO DECIMAL(11,2) TRUNCATION

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Assigning a decimal(9,4) to a decimal(11,2) fires the following
    warning:
    IWN.VAL.6774.w 13/20 TruncDec - A move from decimal(11,2) to
    decimal(11,2) could cause a truncation in the result.
    At line 13 in file \TestDec\EGLSource\test\com\TruncDec.egl.
    
    Sample code:
    program TruncDec type BasicProgram (a ArrayRec []){}
    
    
    	function main()
    		priceunitsink decimal(9, 4);
    		a = new ArrayRec[5];
    
    		 for (i int from 1 to a.getSize())
    			a[i].cdValore = priceunitsink * a[i].dsValore;
    
    		end
    	end
    end
    
    record ArrayRec type BasicRecord
    	cdValore decimal(11,2);
    	dsValore decimal(11,2);
    
    end
    
    Fundamentally the warning is valid but it is fired by the
    decimal (9.4) representation,priceunitsink, so it should flag
    this in the warning message.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * EGL users assigning move statements                          *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Assigning a decimal(9,4) to a decimal(11,2) fires the        *
    * following                                                    *
    * warning:                                                     *
    * IWN.VAL.6774.w 13/20 TruncDec - A move from decimal(11,2) to *
    * decimal(11,2) could cause a truncation in the result.        *
    * At line 13 in file \TestDec\EGLSource\test\com\TruncDec.egl. *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Fixed in RBD 961 and 9513
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH51525

  • Reported component name

    RATL BUS DEV

  • Reported component ID

    5724S5000

  • Reported release

    960

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-12-16

  • Closed date

    2024-02-08

  • Last modified date

    2024-02-08

  • 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

    RATL BUS DEV

  • Fixed component ID

    5724S5000

Applicable component levels

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"960","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
08 February 2024