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 Delivered
Workspace IBM i
Categories Languages - RPG
Created by Guest
Created on May 9, 2022

New function %lookupNE() to find the first element in an array not equal to the search argument

Many times I have to locate the first non-blank or non-zero element in an array. To search for it I either have to code a for/endfor or dow/enddo loop to scan for it. Sorting it is not an option. The sequence must be kept.


So often it is something like this:

x=1;

dow x < %elem(myArr) and myArr(x) = 0;

x+=1;

enddo


I would love to have the possibility to code something like this:

x = %lookupNE( 0 : myArr);


%lookupGT can not be used because it needs the array to be sorted.

%lookupNE should do a sequential search like the %lookup function can do on an array.

Idea priority Medium
  • Guest
    Jul 24, 2026
    IBM believes that the solution for the Idea described is available with the following PTFs:

    7.5 PTF for the ILE RPG compiler, TGTRLS(*CURRENT): 5770WDS SJ10450

    7.6 PTF for the ILE RPG compiler, TGTRLS(*CURRENT): 5770WDS SJ10455
    7.6 PTF for the ILE RPG compiler, TGTRLS(V7R5M0): 5770WDS SJ10460

    New built-in functions %LOOKUPNE and %TLOOKUPNE are added. They return the first element that is not equal to the search argument.

    For further information, see https://www.ibm.com/docs/en/ssw_ibm_i_75/rzasl/rpgrelv7r5post.htm for 7.5 or https://www.ibm.com/docs/en/ssw_ibm_i_76/rzasl/rpgrelv7r6post.htm for 7.6.

    - IBM Power Systems Development
  • Guest
    Jul 14, 2026
    IBM intends to provide a solution. However, IBM's plans may change and no commitment is made that a solution will be provided.

    New built-in functions %LOOKUPNE and %TLOOKUPNE will be added. They will return the first element that is not equal to the search argument.

    - IBM Power Systems Development
  • Guest
    May 9, 2022
    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.

    - IBM Power Systems Development