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 (https://ideas.ibm.com).
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:
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 an idea.
Get feedback from the IBM team and other customers to refine your idea.
Follow the idea through the IBM Ideas process.
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.
See this idea on ideas.ibm.com
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.
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;
endfor;
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 |
By clicking the "Post Comment" or "Submit Idea" button, you are agreeing to the IBM Ideas Portal Terms of Use.
Do not place IBM confidential, company confidential, or personal information into any field.
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.
Thank you very much.
This RFE is being reopened because as the submitter pointed out, it is not entirely a duplicate of RFE 137563.
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.
This is a duplicate of RFE 137553. https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=137553.