When you use the DESCRIBE statement on a prepared SELECT statement with the TRIM function in its select list, the data type of the trimmed column that DESCRIBE returns depends on the database server that you use and the data type of the column to be trimmed (the source character-value expression). For more information on the source character-value expression, see the description of the TRIM function in the Informix Guide to SQL: Syntax.
Using TRIM with INFORMIX-SE For INFORMIX-SE, the DESCRIBE statement returns the same data type as the source character-value expression. When you dynamically execute the following SELECT statement with an SE database server, the DESCRIBE statement returns a data type of SQLCHAR, the same data type as the select-list column, manu_code (the source character-value expression).
Using TRIM with INFORMIX-Universal Server For INFORMIX-Universal Server, the data type that the DESCRIBE statement returns depends on the data type of the source character-value expression, as follows: