× 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 26 Sep 2013 13:08, Robert Mullis wrote:
I changed the second parm to a VARCHAR(1) and now it finds the UDF.
Now the UDF is failing with "Missing operational descriptor." in the
joblog. Apparently the OPDESC on my procedure is a problem.

I did not notice the OpDesc coded on the prototype; I've never used that keyword, so is was overlooked. AFaIK the invocation by the SQL does not include the [minimally required] operational descriptors; the following links support that, although I could find no doc link in the InfoCenter. The original code could be indirectly invoked by come "wrapper" code that does include the operational descriptors, and that code could even make its second parameter varying and then use a 1-byte char to call the original code. Then instead of creating the additional /sourced function/ in the SQL, create the extra code in the RPG to accomplish both the OpDesc requirement and the casting effect, and code the CREATE FUNCTION for that new RPGLE wrapper; the wrapper, as new code, could be coded to an alternate PARAMETER STYLE than GENERAL.

http://archive.midrange.com/rpg400-l/200306/msg00579.html
http://archive.midrange.com/rpg400-l/200306/msg00601.html
http://forums.iprodeveloper.com/forums/aft/47811


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.