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
Categories z/OS
Created by Guest
Created on Feb 28, 2023

Add the ability to obtain ODO counter with the JSON PARSE statement

It would be really useful to us to be able to parse dynamic JSON arrays into ODO COBOL tables, with the JSON PARSE statement giving us the number of actual occurrences filled. Ideally by automatically update the ODO counter.

It would also be very handy if this was possible for imbricated dynamical arrays with different numbers of occurrences, which are very common in JSON.

As of now, when the API we call returns a dynamic JSON array, we need to declare a COBOL array with a large number of occurrences in order to be sure to retrieve all the data with the JSON PARSE statements.

But, in most cases, the JSON array will be way smaller than the max size of the COBOL array, and we will not know how many of its occurrences are actually populated.

The solution given in the COBOL documentation (https://www.ibm.com/support/knowledgecenter/en/SS6SG3_6.3.0/lr/ref/rlpsjsopd.html) is not really desirable, especially if the API returns multiple dynamic arrays.

Idea priority Medium
  • Admin
    Basil Kanneth
    Reply
    |
    Apr 12, 2023

    This IDEA is a duplicate of COBOLVUE-I-312

    After further investigation, we have determined that this still isn't feasible in general for nested ODO tables. Real support for this would need to be provided through more general COBOL support for Dynamic capacity tables, which is not in plan at the moment.

    Since we do not plan to implement this within the next 12months, this Idea is being rejected for now. But this requirement will be kept in our internal backlog and might be reassessed in the future.

  • Admin
    Basil Kanneth
    Reply
    |
    Mar 16, 2023

    This idea is being discussed further internally