IBM Support

PH43350: SQLCODE=-181 with LOCAL DATE/TIME format

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Customer is performing INSERT of data in to a DB2 table.
    The table contains DATE columns and the subsystem has been
    defined with a LOCAL DATE format.
    Optim reports a DB2 error similar to:
    
    DSNT408I SQLCODE = -181, ERROR:  THE STRING REPRESENTATION OF A
             DATETIME VALUE IS NOT A VALID DATETIME VALUE
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All Optim users using DB2 LOCAL DATE/TIME    *
    *                 formats.                                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: Optim may report SQL errors while       *
    *                      processing DATE and TIME values during  *
    *                      INSERT.                                 *
    ****************************************************************
    The error will only occur in scenarios when the DB2 subsystem
    has been defined with LOCAL DATE or TIME formats and
    the length of such columns is greater than the default DB2
    values of 10 and 8, respectively.
    The DATE/TIME values, as presented by Optim for the INSERT
    processing, would be incorrectly padded with 0x00 characters
    causing the SQLCODE = -181 to be reported.
    

Problem conclusion

  • Optim processing logic will be corrected.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH43350

  • Reported component name

    OPTIM MOVE FOR

  • Reported component ID

    5655V0700

  • Reported release

    B70

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2022-01-13

  • Closed date

    2022-01-21

  • Last modified date

    2022-02-01

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

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

Modules/Macros

  • FOP1ODRV FOP1OSFN FOP4PMMN FOP9APIM FOPCFPMN FOPHSTM  FOPMADDE
    FOPMAIN  FOPMARCN FOPMCMAI FOPMDPRC FOPMECMN FOPMMUNU FOPMMUTL
    FOPODPP  FOPOMN   FOPRS9   FOPZFMMN FOPZMAIN
    

Fix information

  • Fixed component name

    OPTIM MOVE FOR

  • Fixed component ID

    5655V0700

Applicable component levels

  • RB70 PSY UI79009

       UP22/01/25 P F201

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"},"Platform":[{"code":"PF054","label":"z\/OS"}],"Version":"B70"}]

Document Information

Modified date:
02 February 2022