Skip to Main Content
IBM Power Ideas Portal

This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. 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 (

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 ( - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal ( - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM. - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Not under consideration
Workspace IBM i
Categories Languages - RPG
Created by Guest
Created on Oct 24, 2019

Allow array index to start from zero instead of 1

I would like to have the possibility to specify that the index of an array starts from zero instead of 1.

Many times I have to code something like this
eval myArray(x+1) = 1234
where x can have the value zero.

If it was possible to specify that the lower bound of myArr is zero then I could code
eval myArray(x) = 1234
giving a "cleaner" code.

Use Case:

dcl-s myArr packed(7:0) dim(100) LOWERBOUND(0);
dcl-s x int(10);

for x = %lowerbound(myArr) to %upperbound(myArr);
myArr(x) = x;

x = %lookup(9999 : myArr);

In this example a new keyword LOWERBOUND i defined. The valid values for it are 1 (default) and 0.
The new bifs %lowerbound() and %upperbound() returns zero and 99 in this example.
The existing %elem() wil still return 100.

Of course bifs like %lookup() must return -1 if no match is found in this case .
That equals %lowerbound() - 1

Idea priority Low
  • Guest
    Apr 17, 2020

    IBM does not intend to provide a solution to this request at this time, so it is being closed.

    This request does not align with the strategy for future investment in the ILE RPG compiler. IBM feels that it would not enhance the maintainability of RPG programs if array indexes did not always have the same origin.

  • Guest
    Oct 28, 2019

    Thank you very much.

  • Guest
    Oct 25, 2019

    This RFE is being reopened because as the submitter pointed out, it is not entirely a duplicate of RFE 137563.

  • Guest
    Oct 25, 2019

    No this is not a duplicate.

    RFE 137553 changes the index to start from zero for ALL arrays in the program.
    Fairly useless IMHO - You can't use it in existing programs.

    This RFE ( 137563 ) changes the index to start from zero for a specific array.
    Thus you can use it in existing programs.

  • Guest
    Oct 25, 2019

    This is a duplicate of RFE 137553.