>>-TYPE_NAME---(--expression--)--------------------------------><
The schema is SYSIBM.
The TYPE_NAME function returns the unqualified name of the dynamic data type of the expression.
The argument must be a user-defined structured type. 49
The data type of the result of the function is VARCHAR(18). If expression can be null, the result can be null; if expression is null, the result is the null value. Use the TYPE_SCHEMA function to determine the schema name of the type name returned by TYPE_NAME.
Examples:
SELECT TASK, WHO_RESPONSIBLE->NAME, TYPE_NAME(DEREF(WHO_RESPONSIBLE)), TYPE_SCHEMA(DEREF(WHO_RESPONSIBLE)) FROM ACTIVITIES
The DEREF function is used to return the object corresponding to the row.