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.
See this idea on ideas.ibm.com
Now that we have %ADDR and the *NULL keyword in CL/ILE, it would be awfully, awfully nice (for cross-language consistency) that since we have %PARMS, %PARMNUM, and the *BLANKS and *ZEROS keywords in RPG/ILE, that we could also have the same in CL/ILE.
There are a couple of other RFE's in this area (one even from me):
https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=102487
https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=103104
However, they don't go far enough for the full functionality I am requesting with this latest RFE.
I can check for optional parameters as follows in RPG/ILE:
if %parms() < %parmnum(OptRun) // if parm not passed
or %addr(OptRun) = *null // or parm was omitted
or OptRun <= *blanks; // or parm is blank
else; // keep default, else
RunOpt = OptRun; // replace default
endif;
I should be able to do exactly the same in CL/ILE -- as follows:
IF COND(%PARMS *LT %PARMNUM(&OPTRUN) +
*OR %ADDR(&OPTRUN) *EQ *NULL +
*OR &OPTRUN *LE *BLANKS) THEN(DO) /* NOT PASSED? */
ENDDO /* OR IS BLANK */
ELSE CMD(DO) /* KEEP DFLT, ELSE */
CHGVAR VAR(&RUNOPT) VALUE(&OPTRUN) /* REPLACE DEFAULT */
ENDDO
Idea priority | Medium |
By clicking the "Post Comment" or "Submit Idea" button, you are agreeing to the IBM Ideas Portal Terms of Use.
Do not place IBM confidential, company confidential, or personal information into any field.
Support of *BLANKS and *ZEROS are under consideration but with low priority, since https://jazz07.rchland.ibm.com:24443/jazz/web/projects/IBM%20i%20RFE#action=com.ibm.team.workitem.viewWorkItem&id=22639 103104: Add new function *BLANKS and *ZEROS on CLP is already for the rest part, close this one with delivered.
The new %PARMS built-in function for ILE CL compiler by PTF SI66721 for V7R3.
%PARMS returns the number of parameters that were passed to the program in which %PARMS is used.
Support of *BLANKS and *ZEROS are under consideration.