IBM Support

PI73154: ENTERING INCORRECT DATE VALUES FOR THE DATETIMELIB.MDY FUNCTION DOES NOT THROW AN EXCEPTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Program calling the DateTimeLib.mdy function, which in turn
    passes erroneous range values, returns an obscure date instead
    of throwing an exception as expected ie.
    d1 date = DateTimeLib.mdy(31, 12, 2016);
    SysLib.writeStdout(d1);
    Output shows the date as:
    12/07/2018
    
    In this scenario an exception should be thrown as per the
    following example:
    (15:06:20>  .--> com.datesMdy.main
    (15:06:20> EGL0114E The DateTimeLib.mdy function cannot convert
    the 31, 12, and 2016 values into a month, day, and year.
    (15:06:20> EGL0002I The error occurred in datesMdy processing
    the main function.
    (15:06:20> endRunUnit datesMdy (error termination) with
    returnCode=693
    EGL0114E The DateTimeLib.mdy function cannot convert the 31, 12,
    and 2016 values into a month, day, and year.
    EGL0002I The error occurred in datesMdy processing the main
    function.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * EGL Java users                                               *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Program calling the DateTimeLib.mdy function, which in turn  *
    * passes erroneous range values, returns an obscure date       *
    * instead                                                      *
    * of throwing an exception as expected.                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • The problem is fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI73154

  • Reported component name

    RATL BUS DEV

  • Reported component ID

    5724S5000

  • Reported release

    950

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-12-02

  • Closed date

    2019-01-18

  • Last modified date

    2019-01-18

  • 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

  • R911 PSY

       UP

  • R950 PSY

       UP

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

Document Information

Modified date:
18 October 2021