×
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.
Hello,
You lose nothing by not being able to retrieve exactly what is done with
the precompiler. There are things that the SQL CLI does that the
precompiler cannot but there is nothing in the reverse (IMHO). And I've
never used SQL CLI.
I'm not sure that I understand what you're saying here... but there are
at least two things the precompiler does that CLI cannot:
a) It does part of the work at compile (or pre-compile) time. CLI has
to do all of the work at runtime.
b) External stored procedures using embedded SQL can return result sets
via the "Set result sets" function. This capability doesn't exist in CLI.
c) CLI has trouble when you have more than one program using CLI in the
call stack. If you open a CLI environment, then call another program
that tries to allocate a new environment (such as CPYTOIMPF) the second
open will fail. (You have to close the environment in the first program
before calling the 2nd.)
On the other hand, CLI:
a) Lets you get the result set (not just parameters) from a stored
procedure call.
b) Is included with IBM i, nothing else to buy.
c) follows the industry-standard CLI API (ODBC compliant), so apps
written to use it (in particular, C programs) can be made platorm neutral.
Hope that helps someone :)
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.