tmlen Routine--Determine Display Length
The tmlen routine determines the display length of the data type.
This routine returns the default and worst-case lengths for a data type if it were to be printed as text, for example, by a terminal monitor. Although user-defined data types are not returned to a terminal monitor as the user-defined types, this routine is needed by various trace flags and error formatting within the DBMS Server.
Place the address of this routine in the dtd_tmlen_addr field of the IIADD_DT_DFN structure.
Inputs
The inputs for this function are:
scb
Pointer to a SCB
dv_from
Pointer to the datavalue for which the call is being made
Outputs
The outputs for this function are:
def_width
Pointer to a 2-byte integer into which the default width was placed
largest_width
Pointer to a 2-byte integer in which the largest (worst case) width was placed
Returns
II_STATUS
Last modified date: 04/03/2024