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.
The concept of "enumeration" is already planned for RPG, but it is very different from what is described in this Idea. It is more similar to the concept of "enumeration" in other languages such as C, being simply a named collection of constants. See https://www.ibm.com/support/pages/node/7047175 for information about the future support for enumerations in RPG.
However, part of this Idea would be useful for RPG enumerations. Please open another Idea to request that RPG add built-in functions to return the name or value of an enumeration constant. For example, if an enumeration constants was en1.blue with value 2, a new built-in function %enumname(en1 : 2) would return 'blue', and %enumvalue(en1 : 'blue') would return 2.
To achieve the aspect of this Idea where the names and keys can be variables, this concept is already available in RPG by using %LOOKUP with a data structure array.
dcl-ds colorKeys qualified dim(2);
color varchar(10);
key int(10);
end-ds;
dcl-s p int(10);
colorKeys(1).color = 'red';
colorKeys(1).key = 1;
colorKeys(2).color = 'blue';
colorKeys(2).key = 2;
p = %lookup('blue' : colorKeys(*).color);
dsply colorKeys(p).key;
p = %lookup(2 : colorKeys(*).key);
dsply colorKeys(p).color;
- IBM Power Systems Development