× 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 12/1/10 7:49 AM, sjl wrote:

Sometime ago I created an SQL UDF twice, with different parameters.
When I query the SYSFUNCS table, I can see it registered twice with
different signatures, once with 2 parameters and again with 3
parameters.

I wanted to DROP /both/ functions, but I could not remember how I
created the one that takes 3 parameters.

By using System i Navigator and expanding
Database->DbName->Schema->Libname->Functions, I was able to
right-click on each of the functions and deleted them.

Here is my question: How would I use the green-screen SQL interpreter
(STRSQL) to drop a UDF, not knowing how it was created?


Query the SYSFUNCS VIEW and get the SPECNAME to either use that SPECIFIC_NAME value in the SQL request DROP SPECIFIC FUNCTION specific-function-name or to use that SPECIFIC_NAME value to query either SYSPARMS or PARAMETERS to then build the SQL request to: DROP FUNCTION function-name ( parameter-type-list )

Regards, Chuck

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