Robert,
I'm not sure, but the following SQL may help answer your question.
This is a statement we have used to track local UDF.
Start of sql-----------------------------------------
SELECT CAST(routine_name AS CHAR(15)) AS Name,
CAST(routine_schema AS CHAR(10)) AS Library,
routine_type AS Type,
CAST(routine_definer AS CHAR(10)) AS Created_By,
function_origin AS Origin,
routine_definition AS Source_Code
FROM qsys2/sysroutines
WHERE routine_definer NOT IN ('QSYS', 'QLPINSTALL', 'QDIRSRV')
AND ( ( routine_type = 'FUNCTION' ) AND
(function_origin NOT IN ('B')) OR
(routine_type = 'PROCEDURE')
)
End of sql -----------------------------------------
Output looks something like:
....+....1....+....2....+....3....+....4....+....5....+....6....+....7.
NAME LIBRARY TYPE CREATED_BY ORIGIN SOURCE_CODE
VRSP900 BASSD PROCEDURE S4 -
QZDGDBLL QIWS PROCEDURE T9 -
BUDSAPSP QGPL PROCEDURE S7 -
RPSP900 QGPL PROCEDURE S4 -
QZDGDNAV QIWS PROCEDURE S9 -
QZDGDTOQ QIWS PROCEDURE GTHOMPSON -
QZDGDSPF QIWS PROCEDURE SY -
CURCYMD SWIRE FUNCTION GTHOMPSON E -
QQQDBVE QIWS PROCEDURE GTHOMPSON -
QZDGDBPM QIWS PROCEDURE GTHOMPSON -
EDITCODE SWIRE FUNCTION GTHOMPSON E -
DAYDIFCYMD SWIRE FUNCTION GTHOMPSON E -
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Robert Mullis
Sent: Friday, August 02, 2013 8:12 AM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Creating UDFs
I am trying to create my first UDF to use in embedded SQL in an RPGLE program. I have created the procedure in a service program with no problem, but I have a question about the UDF. When the UDF is created, what library is it created in? Also, if the service program that the UDF uses is moved to another library, what happens to the UDF? Does it move to the new library with it?
Thanks,
Robert J. Mullis
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.