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 Nov 6, 2020

COBOL function hbound() for tables

COBOL has no easy way to check a table index or subscript against the OCCURS [... TO] {n} TIMES value.

You can define an OCCURS constant to check against, but this requires application maintenance correctly preserve the correspondence when the table size is changed.

Having a compiler supported FUNCTION HBOUND(table) (name copied from PL/I) return the upper bound of the table would avoid the maintenance issue.

HBOUND would need to return either the maximum offset in case of comparison with a table index, and the OCCURS bound elsewhere.

Idea priority Medium
  • Admin
    Nicole Trudeau
    Reply
    |
    Apr 5, 2024

    Thank you for your interest in this Idea submitted in 2020 for an hbound function for tables. We understand how this feature would be useful and we appreciate you taking the time to vote for it. This Idea has recently been appraised against the wider product strategy and it will not fall into IBM’s delivery plans for the next 12 months. While this Idea might be valid and we might look to deliver longer term, this Idea is being rejected at this time. The requirement will be kept in our internal Idea backlog and might be reassessed in the future.

    Nicole Trudeau, IBM COBOL Compilers Product Manager

  • Guest
    Reply
    |
    Mar 14, 2024

    Any updated on planned delivery date?

  • Guest
    Reply
    |
    Dec 7, 2020

    This is a valid RFE and we will be accepting it. RFE will be updated further once put into plan.

  • Guest
    Reply
    |
    Nov 8, 2020

    What would be the returned value for un unbouded table ?
    Allocated space divide by item size ?
    How compiler internally manage size of unbounded table, if it does ?