I have an SQL UDF that I created using the SQL CREATE FUNCTION statement. This resulted in a *SRVPGM (CLE) object and a record in SYSFUNCS. I would like to distribute this UDF to the other AS/400's in my organization. What is the best way to do this?
I tried simply distributing the *SRVPGM (via save files and FTP). This has the advantage of guaranteeing that the same *SRVPGM object is used on all systems. And DSPSRVPGM SRVPGM(CVTDEPT) displays the same information on all systems. If I use STRSQL, I'm able to invoke the function. If I use iSeries Navigator 'Run SQL Scripts', I get an SQL0204 error message: CVTDEPT in *LIBL type *N was not found. I'm guessing it is because the record in SYSFUNCS is absent.
Do I have to run the CREATE FUNCTION command on each system as I did the first (thereby creating a new object) or is there another way of running the CREATE FUNCTION command that adds the SYSFUNCS record without creating a new object? Thanks!
--
Regards,
Philip Seay
As an Amazon Associate we earn from qualifying purchases.
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.