On 23-Jan-2012 05:51 , rob@xxxxxxxxx wrote:
Your sql statement returns
select ... from FROM TABLE (QSYS2.PARTITION_DISKS(CAST(NULL AS
VARCHAR(10)), CAST(NULL AS VARCHAR(10)) ) ) AS X

Ok, that casting after the FROM confuses me. Then I look at it more
and notice "FROM TABLE". TABLE? Is that the UDT?

TABLE (
QSYS2.PARTITION_DISKS( CAST(NULL AS VARCHAR(10))
, CAST(NULL AS VARCHAR(10))
)
) AS X

The function PARTITION_DISKS [library qualified with QSYS2] is invoked with two VARCHAR(10) parameters, both being the NULL value.

Where in iNav are these stored? I can't seem to find it.
And it sure isn't going to show up in WRKOBJ.
How do I get a list of User Defined Tables (UDT) in DB2?


FWiW, "UDT" typically is used to refer to "Type" rather than "Table", and UDTF is typically used to refer to a User Defined Table Function more specifically than the generic UDF which could be scalar, table, etc.

To get a list of all UDF in QSYS2, select the data from the SYSFUNCS or SYSROUTINES catalog VIEW or TABLE, where the SCHEMA name equals 'QSYS2'. That will show the external program name in the row which defines the UDTF routine named PARTITION_DISKS in QSYS2.

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.