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



Not only that, but when you do a CHAIN, if you do not get a hit, you do
not set the record pointer, so the next READ/READE will give "Undefined
Results".

-----Original Message-----
From: Clapham, Paul [mailto:pclapham@xxxxxxxxxxxxx] 
Sent: Friday, November 21, 2003 11:52 AM
To: Midrange Systems Technical Discussion
Subject: RE: Two reade loops: which one preferred ?

I found this out the hard way too... CHAIN isn't equivalent to
SETLL-READE.
READE sets the %EOF "indicator" if it doesn't find a record, but CHAIN
doesn't, it sets %FOUND (I believe). So if you want a single loop test,
it
needs to be %EOF, and therefore CHAIN to initialize the loop doesn't
work.

PC2

-----Original Message-----
From: Vern Hamberg [mailto:vhamberg@xxxxxxxxxxxxxxxxxxxxxxxxx]
Sent: November 21, 2003 09:37
To: Midrange Systems Technical Discussion
Subject: RE: Two reade loops: which one preferred ?


OK, I'm doing C these days and haven't done free-form RPG. Is CHAIN
gone? 
Why the SETLL-READE combination, when CHAIN is equivalent?



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.