× 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.


  • Subject: RE: R: RPG Indicators
  • From: Jon Erickson <jerickson@xxxxxxx>
  • Date: Tue, 18 Apr 2000 14:32:21 -0700

The only problem I find using the %BIF Indicators is during a debug session.
Yes, I can use an indicator in conjunction with the %Found or %EOF. But why?

Sometimes it nice to be able to manipulate the indicators during debug
sessions testing each path a section of code may take dependant upon thier
status.  Sure beats having to build all the test data scenarios.

Just .02 worth, maybe less.

Regards,
Jon A. Erickson
Sr. Programmer Analyst
800.COM Inc.
1516 NW Thurman St
Portland, OR  97209-2517
 
Direct: 503.944.3613
Fax: 503.944.3690
Web: http://800.com
 
 

-----Original Message-----
From: Jon.Paris@hal.it [mailto:Jon.Paris@hal.it]
Sent: Tuesday, April 18, 2000 12:05 PM
To: RPG400-L@midrange.com
Subject: Re: R: RPG Indicators




 >>  I come back to indicators.  What do you think about this?

I think that there is no reason to use indicators at all any more except
where
dictated by the compiler (e.g. LOOKUP) and even then you don't have to _use_
the
indicator afterwards, it is only needed to qualify the operation.

I'm not sure why so many people seem to be confused over the use of %Found.
The
built-ins map on a one-to-one basis with the old indicators, so it is all
very
straightforward.  %Found is only set by operations that can set the "No
Record
Found" (NRF) indicator (e.g. CHAIN).  Since READC does not set the NRF
indicator
it does not set %Found either.

The basic plan is this:

%EOF - set whenever the EOF indicator would have been set.

%Error - set when the (E) extender is used _and_ the error indicator would
have
been set

%Found - the opposite of the NRF indicator - set when the indicator would
have
been off and vice-versa
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.