Describing a structured type
This section provides information about describing a structured type.
About this task
A DESCRIBE of a statement with a structured type variable causes Db2® to put a description of the result type of the FROM SQL transform function in the SQLTYPE field of the base SQLVAR of the SQLDA. However, if there is no FROM SQL transform function defined, either because no TRANSFORM GROUP was specified using the CURRENT DEFAULT TRANSFORM GROUP special register or because the named group does not have a FROM SQL transform function defined, DESCRIBE returns an error.
The actual name of the structured type is returned in SQLVAR2.