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 Delivered
Created by Guest
Created on Jun 5, 2019

ADC Micropattern

ADC micropattern "calls the system date with the century. The date is
loaded into the DATCE constant and possibly in the field that is
indicated in the operands".

So I think that ADC micropattern should generate this code:

"ACCEPT DATCE FROM DATE YYYYMMDD"

instead of the actual coding:
" ACCEPT DATOR FROM DATE
IF DATOA < DAT-CTYD
MOVE '20' TO CENTUR END-IF"

Idea priority Medium
  • Guest
    Reply
    |
    Jan 27, 2020

    We have evaluated this request and determined that it works as design.

    Here is the explanantion in french ...

    Definition : Fournit la date machine sous la forme SSAAMMJJ où ’SS’ représente le siècle.
    ADC génère l'appel de la date système avec le siècle. La date sera fournie dans la constante DATCE, et éventuellement dans la zone écrite en opérande.

    Definition DATCE en working :
    01 DATCE.
    05 CENTUR PICTURE XX VALUE '20'.
    05 DATOR.
    10 DATOA PICTURE XX.
    10 DATOM PICTURE XX.
    10 DATOJ PICTURE XX.
    Remarque : en COBOL II et COBOL 85, si on utilise un opérateur de récupération de la date du jour (ADC), et si l’année est inférieure à ’61’, la zone ’CENTUR’ est automatiquement initialisé à ’20’.

    Le géneré dépend des options de genération de date présentes sur la fiche de la bibliothèque: “siècle date système” et “Année du fenêtrage”
    Option siècle/date système :N (Valeur par défaut à la création de la Bibliothèque) ou W.
    Si l'annee est inferieure à la valeur saisie dans la zone ANNEE DU FENETRAGE, elle est préfixée par 20.
    Si elle est superieure, elle est préfixée par 19.
    C : Récupération directe de la Date Système incluant le siècle suivant les possibilites du COBOL.


    >>> Si option siècle = N ou W :
    ACCEPT DATOR FROM DATE
    IF DATOA < DAT-CTYD MOVE ‘20’ TO CENTUR END-IF
    MOVE DATCE TO date
    DATCE contient bien la date (DATOR) sur 6 caractères complétée du siècle( CENTUR)
    >>> Si option siècle = C
    MOVE FUNCTION CURRENT-DATE TO DATCE
    MOVE DATCE TO date
    DATCE contient bien la date directement avec le siècle inclu.
    Conclusion : le généré est correct ,dans tous les cas la zone DATCE récupère bien la date machine sous la forme SSAAMMJJ

  • Guest
    Reply
    |
    Dec 5, 2019

    A preliminary evaluation of this request indicates that it is consistent with our business strategy. Further evaluation of this RFE is underway.

  • Guest
    Reply
    |
    Jun 24, 2019

    What about "language" option used ? "C" ou "D" ?
    "D" generate "MOVE FUNCTION-DATE() TO DATCE" instead of "ACCEPT FROM DATE".