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.
Regarding the third issue where you want to split on a string rather than a list of characters, please open a separate Idea. As a work-around, you could use %SCANRPL to replace the separator-value in the source string with a single character such as x'00' or some other character that is guaranteed not to be in the source string.
- IBM Power Systems Development
Some comments...
Needing the first (or any other element) of the array by using a For-Each loop is not practical as you can't write an expression, or pass it as a parameter to another procedure. For example instead of DoSomething(%Split(myString: ',')(1)) one would need to write several lines of code.
Fine.
What you're referring to is something different. I want to split on the string specified as the second parameter for %Split, even if this parameter is more than one character, ie. the characters should not be considered as multiple different delimiters but as one single (multi-char) delimiter.
This requirement has several separate requests:
1. Allow an index for %SPLIT. To avoid using a work array, you could process the output of %SPLIT using a FOR-EACH loop.
FOR-EACH item in %split(string);
// process item
leave; // we only want the first item
ENDFOR;
2. The error message RNF0625 is misleading when it says that the result of %SPLIT or %SUBARR is not an array. This aspect of the requirement is accepted, and will be tracked internally by IBM.
3. Treat each separator separately. There is already an Idea related to this. Please consider voting for that Idea instead. https://ibm-power-systems.ideas.ibm.com/ideas/IBMI-I-3007 ("%split() should return an empty element where a separator character follows another separator character")
- IBM Power Systems Development