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



Hi Vern,

The only way now to use a stored procedure in an RPG program is to
use SQL/CLI - the call level interface - not necessarily for the
faint of heart, although I do use it in some of our stuff.

Heh... it's not "the only way". There are other ways! You could call JDBC instead of CLI. Or you could launch the db2 QShell command via the spawn() API, and read back it's results, etc.

CLI is just the "easiest" way, and performs the best.

I find it interesting that you say it's not for the feint-of-heart, yet, CLI is the programming interface of ODBC, and is "the standard" for writing apps that do database access! It goes to show how spoiled we are in RPG, where embedded SQL is easy, and record-level I/O is easy. Other languages all use CLI, or something very much like it (like JDBC) any time they do database access.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.