IBM Support

PH05341: CAST CURRENT_DATE TO TIMESTAMP RETURNS WRONG TIME PORTION WHEN PROCESSED LOCALLY

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • When CAST cannot be executed on database level IBM Cognos does
    the calculation, but returns current time instead of begin of
    day/ midnight.
    Using constant value like '2018-11-12' instead of current_date
    is working.
    

Local fix

  • Ensure a calculation (here: cast( current_date, timestamp) ) is
    sent to your database.
    Or use an expression converting current_date to string first,
    then back to date; for example: cast(cast(cast(current_date,
    varchar(10)),date),timestamp)
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All Users                                                    *
    *                                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    *                                                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to IBM Cognos Analytics 11.1.2                       *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH05341

  • Reported component name

    COG REPORT STUD

  • Reported component ID

    5724W12RS

  • Reported release

    B09

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-11-15

  • Closed date

    2019-06-05

  • Last modified date

    2019-06-05

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

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

Fix information

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCHNWW","label":"Report Authoring v11x"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"B09","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
05 June 2019