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



Alfredo Delgado wrote:

VARCHAR isn't supported when calling a CL program.


That's true, but... presumably, you're NOT calling a CL program. You're calling an RPG program, with a CL program in the middle as an intermediate. The actual stored procedure code is written in RPG, is it not?

That being the case, I'd change your CREATE FUNCTION to tell SQL that the program is RPGLE. The only reason it doesn't let you pass VARCHAR to CL is because CL doesn't have a VARCHAR data type. But that really doesn't matter if all you're going to do is pass the parameter on to an RPG program. The RPG program has the VARCHAR (i.e. VARYING) data type, and therefore it's RPG's parameters you should be coding for, not CL's.

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.