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



LOL Scott!!

Yes - agree all down the line! We really are spoiled - RPG makes so much easier - in spite of the things we complain about, I really don't consider record-level access to be a good time in a language like C/C++ 0- on the other hand, it has capabilities you don't have in RPG that I hope to take advantage of one of these days.

CLI is wonderful - just a bit of a learning curve - and the need to be careful. I also had problems when combining embedded SQL and CLI in maybe the same activation group - only one connection allowed, stuff like that - stumbled over a number of things. Feeling much better now after breaking my fall with my face!

And thanks for pointing out JDBC and QShell - I do mostly green screen stuff here - big pile of tasks on my plate - so I don't do much Java - but I like using QShell and PASE when it fits.

Regards
Vern

-------------- Original message --------------
From: Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>

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.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

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.