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



Matt

I've not done this but can make a guess.

Have you looked at the SET statement? Seems a good candidate for doing this. Something like

set :hostintvar = storedproc(parm1, parm2,...)

Otherwise, use an INOUT parameter instead of a return value.

The docs say a return statement must return an INTEGER - that'd be 10i 0 - I don't think we should hardly EVER use B data types in RPG anymore. Certainly not with SQL stuff.

HTH
Vern

On 6/5/2013 3:03 PM, Matt Olson wrote:
Folks,

When you execute a SQL stored procedure from RPG, how do you get the return value of the stored procedure, and what is the data type (INTEGER? If so then is it defined a "9B 0")?

We are executing it by doing a CALL storedprocname

Thanks,

Matt


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.