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



On 25 Mar 2013 11:49, William Howie wrote:
I think I have what should be an easy question.
I would like to call an SQL stored procedure from within
a free-format RPGLE program. Is that possible?
Hopefully I'm not oversimplifying the question.
Please advise, with examples if possible.

Within a SQLRPGLE /free program [i.e. pre-compiled by SQL], here are four examples:

Exec SQL
call qsys/qcmdexc ('dspjob', 0000000006.00000)
;

Exec SQL
call execcmd('runqry *n qtemp/pn')
; /* routine ExecCmd is wrapper for QCMDEXC for ease of use */

Exec SQL
call scanchunks(:pos, :srch, :str1, :str2)
;

Exec SQL
call getemladr (:E :EI , :N, :T)
; /* first parm passes null indicator */


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.