IBM Support

IC72022: A SELECT DISTINCT STATEMENT ON A RESULT COLUMN OF DATETIME EXPRESSION RETURNS ERROR 1268

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

  • Running a select distinct statement on a result column from the
    summation of a datetime expression returns error -1268.
    Datatype change to decimal or integer does not reproduce the
    problem.
    
    Example:
    create table tab1 (col1 datetime year to second, col2 datetime
    year to second);
    insert into tab1 values( current, current);
    insert into tab1 values( current, current);
    select col2-col1 out1 from tab1 into temp tab2 with no log;
    select sum(out1) out2 from tab2 into temp tab3 with no log;
    select distinct out2 from tab3;
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All Users                                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Aggregation operations (SUM, AVG) involving datetime and     *
    * interval expressions returns error -1268                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to IDS 11.50.xC7W3 or higher versions                *
    ****************************************************************
    

Problem conclusion

  • The problem is fixed in IDS 11.50.xC7W3 and higher versions
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC72022

  • Reported component name

    IBM IDS ENTRP E

  • Reported component ID

    5724L2304

  • Reported release

    B15

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-10-19

  • Closed date

    2011-01-20

  • Last modified date

    2011-01-20

  • 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

    IBM IDS ENTRP E

  • Fixed component ID

    5724L2304

Applicable component levels

  • RB15 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSGU8G","label":"Informix Servers"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"B15","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
20 January 2011