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.
IBM does not intend to provide a solution to this request at this time, so it is being closed.
IBM feels that adding an alternative syntax for half-adjust would not provide enough benefit to RPG programmers to be worth the effort to implement this in the compiler.
Due to processing by IBM, this request was reassigned to have the following updated attributes:
Brand - Servers and Systems Software
Product family - Power Systems
Product - IBM i
Component - Languages - RPG
Operating system - IBM i
Source - None
For recording keeping, the previous attributes were:
Brand - Servers and Systems Software
Product family - Power Systems
Product - IBM i
Component - Application Development
Operating system - IBM i
Source - None
Thank you for your input, Peder.
After I submitted the request, I had a feeling that certain CCSIDs would cause an issue with [] & {}
I had since modified the request to suggest
Result(+) = (Factor1 - Factor2) * Factor3
This is now on the top of the suggestions.
As far as I know, this would not cause issues with CCSID because () is used extensively and + is used in computations.
And, it may be more intuitive than using "h" because the "+" could be an implicit "Round-up" and "+" isn't a valid variable name.
One should be aware how the characters [] and {} are presented in other codepages.
The characters #@$ are for example presented as ÆØÅ in CCSID 277.
So this is not a good idea.
Instead %DECH should be used when the RFE 11732, that suggests that the second and third parameter should reflect the resulting variable, is implemented.
See:
http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=111732
Then you can code it like A = %dech(B * C)