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).
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 updateson them if they matter to you. If you can't find what you are looking for,
Post your ideas
Post an idea.
Get feedback from the IBM team and other customers to refine your idea.
Follow the idea through the IBM Ideas process.
Specific links you will want to bookmark for future use
Make %subst and %len operate on characters for UTF-8 and UTF-16
Since V7R2 RPG supports UTF-8 and UTF-16 data. That is very nice, however, its usefulness is limited by the fact that %len and %subst operate on bytes instead of characters. That makes it practically impossible to process a UTF-8 of UTF-16 string by character.
This could be solved by either: - Adding an extra parameter to definition keywords VARCHAR and VARUCS2 to specify that not only the number of bytes, but also the number of characters should be stored. Then %len and %subst could be made to operate on characters, specificially for strings that are defined this way. - Adding an extra parameter to %len and %subst to specify that they should operate on characters. - Introducing new data types (VAR)UTF8 and (VAR)UTF16. And make %len and %subst operate on characters for the new data types, of course.
for i = 1 to %len(string); chr = %subst(string: i: 1); <do something with chr> endfor;
is a simple way to process a string by character. But it does not work on UTF-8 or UTF-16, when it contains characters that consist of more than 1 or 2 characters respectively.
Do not place IBM confidential, company confidential, or personal information into any field.