IBM Support

2026-07: %LOOKUPNE and %TLOOKUPNE

News


Abstract

Information about the PTFs for the ILE RPG enhancement that provides the %LOOKUPNE and %TLOOKUPNE built-in functions

Content

You are in: RPG Cafe 2026-07: %LOOKUPNE

Short URL: https://ibm.biz/rpgcafe_2026_07_bif_lookupne

 

2026-07: %LOOKUPNE and %TLOOKUPNE

 

Details

Use %LOOKUPNE and %TLOOKUPNE to find the first element not equal to the search argument.

%LOOKUPNE and %TLOOKUPNE have the same parameters as the other %LOOKUPxx and %TLOOKUPxx built-in functions.

             dcl-ds employees qualified dim(100);
                name varchar(50);
                type char(10);
             end-ds;
             dcl-s num_employees int(10);
             dcl-s p int(10);

             // Find the first employee that does not have type "regular"
             p = %LOOKUPNE ('regular' : employees(*).type : 1 : num_employees);
   

.

.

PTFs for 7.5 and 7.6

7.5:

  • ILE RPG compiler: 5770WDS SJ10450

7.6:

  • ILE RPG compiler: 5770WDS SJ10455
  • ILE RPG compiler, TGTRLS(V7R5M0): 5770WDS SJ10460
 

RDi support

A later update for RDi will support this enhancement.

 

Documentation

The 7.5 and 7.6 ILE RPG Reference and ILE RPG Programmer's Guide are updated with full information about this enhancement. Start at the "What's new since 7.5", or "What's new since 7.6" section in the Reference.

[{"Type":"MASTER","Line of Business":{"code":"LOB73","label":"Power TPS"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS69QP","label":"Rational Development Studio for i"},"ARM Category":[],"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"and future releases;7.5.0;7.6.0"}]

Document Information

Modified date:
17 July 2026

UID

ibm17276362