× 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 want to get embroiled in this religious war. I use both RLA from
RPG and SQL in a variety of forms. I use whichever is suited to the
application I happen to be working.

It's definitely *not* a religious war, Dan. I believe in using whichever
tool is right for the job. That seems to me to be just the opposite of a
religious position. Those who would require SQL (or RLA for that matter,
or null fields, or whatever) seem to have the more rigid ideology. There
are very few absolutes in programming, and to tell someone that RLA is bad
because it's "outdated" is, if not religious, then certainly somewhat
fanatical in nature.



But, I'd like to know what you advocates of RLA think RLA can do that
can't be done with an SQL cursor, or that is significantly slower in SQL
than RLA. Joe even offers in his BOMP example that it could be done with
multiple cursors. I think multiple cursors might actually be faster than a
bunch of recursive SETLL/READE's. It would surely be easier to read.

Not sure about the readability. Why is an exec sql declare cursor, open,
fetch and close any more readable than an F-spec with a SETLL/READE loop?
But if you want something that's significantly slower, then just do a
simple benchmark on doing a select into for a single record as upposed to
a CHAIN. The last time I checked SQL was 5 or 6 times slower tha native
I/O. That's not an insignificant amount.

Joe

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.