×
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.
Greetings all... The topic is quite timely. I was just in a conversation
this morning with a fellow programmer who insists that lack of use of the
file name can cause "unintended results".....even if you check immediately
after the read/chain/setll.
Under normal practice I do not qualify the bifs for the simple reason of
cut-n-paste. Tests for valid reads ALWAYS occur immediately after a
read/chain/setll/etc. (Why continue processing if you don't have the
record.....beside the program has to do something because of the failure,
why not do it now?). Qualifying the bif means that when code is copied,
not only does the read statement change, but the test using the bif has to
change also.
I've only had one issue with the bif and that was chaining to an update
file. The program had a one time failure because either the "%found" was
not qualified, or the "and not %error" was not specified. The program
tried to update a record that was never read apparently due to a record
lock. Both "fixes" were implemented so I don't have a definitive answer
as to which was the real problem. I tend to believe the real issue was
the lack of the "and not %error" portion of the test. I never could
reproduce the error any other way.
Has anyone had any real issues in not qualifying the bif with the file
name......other than cases where the I/O Opcode and the test were separated
by more than one statement number?
As an Amazon Associate we earn from qualifying purchases.
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.