I was able to get the view to retrieve its own name and library, which
could then be passed into the UDF.

Something like this:

with ViewInfo as (
select Object_Name, Object_Library
from table ( QSYS2.JOB_LOCK_INFO('*') )
where Object_Name in (view_name_list) and Object_Attribure = 'LF'
)
select MyUDF(T.ID, V.Object_Name, V.Object_Library),
T.*
from MyTable T join ViewInfo V on 1 = 1


Thanks

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 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.