Skip to Main Content
IBM Power Ideas Portal


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 updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

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.

Status Future consideration
Workspace IBM i
Categories Languages - RPG
Created by Guest
Created on Dec 29, 2020

Allow a BIF that checks to see if a parameter is passed

Please introduce a new BIF that will indicate if a parameter has been passed with actual data, as opposed to not passed or passed with *OMIT.


Use Case:

To check to see if a parameter defined as OPTIONS(*NOPASS) or ...*OMIT) was passed with data, I have to code the cumbersome:

if (%parms() >= %parmnum(MyParm)
and (%addr(MyParm) <> *null);

It would be nice to have a BIF called %passed or some such that does all that:

if (%passed(MyParm));

(and maybe also a BIF %omitted that indicates if *OMIT was passed).


Idea priority Low
  • Guest
    Nov 9, 2022

    I agree that %passed by itself is not sufficient for parameters that can be omitted.

    if %passed(myparm) and not %omitted(myparm);
    ... process the parameter

    - Barbara Morris, IBM, RPG compiler development

  • Guest
    Nov 9, 2022

    "%Parm() and %ParmNum() already give us all the functionality required ..."

    No they don't. They do not tell you if a parm was passed as *Omit. And to determine that you have to test the %Addr of the parameter against *Null. This is far from intuitive. I'm not convinced that the suggested option in this IDEA (%Passed) is sufficient either. Logically, the omission of a parameter, submission but with *Omit, and the passing of a value can be three distinct logical entities.

  • Guest
    Jun 29, 2021

    The CAAC has reviewed this requirement and recommends that IBM view this as a “nice to have” low priority feature. This will simplify the process of checking for parameters, but implement only if it is easy enough to do.

    Background: The COMMON Americas Advisory Council (CAAC) members have a broad range of experience in working with small and medium-sized IBM i customers. CAAC has a key role in working with IBM i development to help assess the value and impact of individual RFEs on the broader IBM i community, and has therefore reviewed your RFE.

    For more information about CAAC, see www.common.org/caac

    Nancy Uthke-Schmucki - CAAC Program Manager

  • Guest
    Mar 10, 2021

    IBM will use this request as input to planning but no commitment is made or implied. This request will be updated in the future if IBM implements it. IBM will use votes and comments from others in the community to help prioritize this request.

  • Guest
    Jan 18, 2021

    The CEAC has reviewed this requirement and recommends that IBM view this as a MEDIUM priority requirement that should be addressed.

    Background: The COMMON Europe Advisory Council (CEAC) members have a broad range of experience in working with small and medium-sized IBM i customers. CEAC has a crucial role in working with IBM i development to help assess the value and impact of individual RFEs on the broader IBM i community and has therefore reviewed your RFE.

    To find out how CEAC help to shape the future of IBM i, see CEAC @ ibm.biz/BdYSYj and the article "The Five Hottest IBM i RFEs Of The Quarter" at ibm.biz/BdYSZT

    Therese Eaton – CEAC Program Manager, IBM

  • Guest
    Dec 30, 2020

    At first glance, I was skeptical, but this would make checking parms consistent whether they were defined with *NOPASS, *OMIT, or both. This would be some nice syntactic sugar on my RPG-O's.

  • Guest
    Dec 29, 2020

    %Parm() and %ParmNum() already give us all the functionality required to determine if a parm was passed in or not. Not sure why this request was even created. What use-case would this request solve? I do not see the value here...what am I missing?

  • Guest
    Dec 29, 2020

    if %Parm(theParmVariable);
    // use TheParmVariable
    endif;


    I couldn't agree more. A simplified interface of a built-in named something like %PARM that does both those options. Then we'd only have to also check for blanks or zeros.

1 MERGED

Simplify testing of *Omit parameters

Merged
Under the current scheme an omitted parameter has to be coded on the call as *Omit e.g: TestOmit ( realParm1 : *Omit : realParm3 ) But in program TestOmit you have to test for the omission by coding something like: If %Addr ( parm2 ) = *Null; /...
22 days ago in IBM i / Languages - RPG 2 Future consideration