×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I don't think I'm missing anything but I do see why it was designed to have %found be true if the indicator for HI is false.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Charles Wilt
Sent: Friday, December 06, 2013 1:41 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Define field as an indicator in D-specs
Not so fast! :D
You're missing the built in negation for the HI indicator when used with a op-code that sets found...for instance CHAIN
"indicator in positions 71-72 that is set on if _NO_ record in the file matches the search argument." (emphasis mine)
So _NO_ record = NOT %found() makes perfect sense...
Charles
On Fri, Dec 6, 2013 at 3:51 PM, Monnier, Gary <Gary.Monnier@xxxxxxxxx>wrote:
Not quite so... true? :)
A little off but...
%found is translated from the HI indicator being set *Off and
not %found being translated from the HI indicator being set *On.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.