Skip to Main Content
IBM Z Software


This portal is to open public enhancement requests against IBM Z Software products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Not under consideration
Workspace COBOL Compilers
Created by Guest
Created on Mar 14, 2014

Cobol Date Functions

Developers use different date functions in most of the COBOL programs. These functions get executed hundreds of millions of times a day in various programs. We have inhouse written product, which may not be efficient and this probably a requirement for every business that runs Cobol. Can IBM create efficient date routines/functions, that uses less CPU and efficient?

Idea priority Medium
  • Guest
    Reply
    |
    Jun 3, 2020

    Since we have not heard back from you, we'll assume the provided date & time functions that we plan to implement will be sufficient.

    As a result, we'll be closing this RFE. Feel free to open a new RFE if you have any further improvements.

  • Guest
    Reply
    |
    May 27, 2020

    Since we have not heard back from you, we'll assume the below mentioned date and time functions are sufficient.

    We shall go ahead and close this RFE by Wednesday, June 3rd, 2020 if no response by then. Feel free to open a new RFE if further enhancements need to be evaluated.

    Thanks.

  • Guest
    Reply
    |
    Apr 29, 2020

    Hi,

    With the upcoming COBOL Standard, there are some new date and time functions that are in plan and being implemented.

    The following list is being worked on and will get us on par to the COBOL Standard:

    COMBINED-DATETIME
    FORMATTED-CURRENT-DATE
    FORMATTED-DATE
    FORMATTED-DATETIME
    FORMATTED-TIME
    INTEGER-OF-FORMATTED-DATE
    SECONDS-PAST-FORMATTED-TIME
    SECONDS-PAST-MIDNIGHT
    TEST-DATE-YYYYMMDD
    TEST-DAY-YYYYDDD
    TEST-FORMATTED-DATETIME

    If the above list is not sufficient, please point out which routines you are having performance issue with.

    Thanks!

  • Guest
    Reply
    |
    Apr 24, 2020

    Thanks for the reply. We are investigating based on your recent update.

  • Guest
    Reply
    |
    Apr 16, 2020

    We also have a date subroutine that invokes LE, but a simple functional implementation would be nice. Allow a more complex format with "-" or '/' and two dates and a delta. Provide operations of say, FORMAT, ADD, SUBTRACT, and DIFFERENCE. I know it's never enough, but it might be a start. The programmer may need a couple of functions to get to the final answer, but that makes the day intersting.

    move CALCDATE (format, 20200219, mm/dd/yyyy) to my_date

    move CALCDATE (add, 20200229, 15) to my_date

    calculate CALCDATE (diff, 20201231,20200229) = nbr_days

    calculate CALCDATE (diff, [function] CURRENT-DATE, 20912131) - nbr_days

  • Guest
    Reply
    |
    Sep 14, 2015

    Due to processing by IBM, this request was reassigned to have the following updated attributes:
    Brand - Servers and Systems Software
    Product family - Programming Languages
    Product - COBOL Compilers

    For recording keeping, the previous attributes were:
    Brand - Rational
    Product family - Design & development
    Product - COBOL Compilers

  • Guest
    Reply
    |
    Apr 2, 2014

    Hi Sangameswara,

    The date functions are all provided by IBM already via
    1) Date intrinsic functions in COBOL and 2) LE Callable services.

    Can you please consider using those?