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.
- What's new since 7.5? https://www.ibm.com/docs/en/ssw_ibm_i_75/rzasl/rpgrelv7r5post.htm
- What's new since 7.6? https://www.ibm.com/docs/en/ssw_ibm_i_76/rzasl/rpgrelv7r6post.htm
Was this topic helpful?
Document Information
Modified date:
17 July 2026
UID
ibm17276362