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



Mark,

SQL doesn't pass a basic operational descriptor, unlike RPG. It is this
opdesc which lets the RPG subprocedure know how many parameters have been
passed. The same goes for some other languages (no doubt someone else will
chime in which ones they are, if you're interested...).

Anyway, to solve your probelm, the easiest thing to do is to add code to
your RPG sub-procedure to treat blank parameters as equivalent to un-passed
parameters, and then pass those parameters as blank from the SQL function.

Rory

On Fri, Oct 3, 2008 at 10:44 AM, Mark Walter <mwalter@xxxxxxxxxxxxxxx>wrote:

I have a sub-procedure in a service program that uses the %parms() bif. If
I call the sub-procedure from RPG, it works fine. However, if I call it from
an SQL External function, it returns -1. Any idea why?

Thanks,

Mark

Mark Walter
Certified IBM System I Specialist
Paragon Consulting Services, Inc
http://www.paragon-csi.com
mwalter@xxxxxxxxxxxxxxx
717.764.7909 x126

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.