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



Hi everybody,

i'm trying to get my hands wet and dirty with UDFs. i need to access a
subprocedure of a service program. the service program is created. the
udf is created/registered. but when i try to use the udf in an sql
statement it says that it can't find the function

SQL0204 SUBSTRINGMERGE der Art *N in *LIBL nicht gefunden.
(SUBSTRINGMERGE of type *N in *LIBL not found.)

i can access the subprocedure from another rpg program. no problem
there.

subprocedure prototype:
D import_substringMerge...
D PR 1000A
D dest 1000A
D source 1000A


sql for creating the function:
create function substringMerge (dest char(1000), src char(1000))
returns char(1000)
language RPGLE
specific import_substringMerge
deterministic
no sql
returns null on null input
no external action
not fenced
external name 'OBJEKTTEST/IMPUTIL_SV(import_substringMerge)'
parameter style general;


my sql for testing:
select substringMerge('test', ' x ') from sysibm/sysdummy1

and is there any way to specifiy *libl in the external name for the
service program?

thanx in advance

Mihael Schmidt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.