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.
This is a very, VERY bad idea. I'm pretty sure this would cause the homicide rate to rise sharply in RPG shops. And lawyers aren't cheap.
It's. A. Joke. People!
But it's still a bad idea.
IBM does not intend to provide a solution to this request at this time, so it is being closed.
While it is sometimes convenient to write multiple statements per line when a programming language, such as Java, supports it, there are differing opinions about whether that style of coding contributes to more maintainable code. Often, coding guidelines recommend against the practice.
It is very unlikely that IBM will implement this requirement for RPG.
However, please refer to RFE 111965 which is requesting that RPG support a "ternary" operator which would allow a simple "IF / ELSE" statement on one line.
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 - Programming Languages
Product - Developer for Power Systems
Component - RPG/COBOL Development Tools
Operating system - IBM i
Source - None
I wouldn't recommend this.
This will result in a really messy program.
Instead another suggestion here might be a better idea:
http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=111965
Besides you have to consider that use of characters like {} depends on the CCSID.
The example you give
If (X=1) { X=2 } else { X=3 }
would look like this for me
If (X=1) æ X=2 å else æ X=3 å
Lovely syntax -- right?