Was this helpful?
tmcvt Routine--Convert Data Type to Displayable Format
The tmcvt routine converts data of a user-defined data type from an internal format to a displayable format. (This displayable format is used by a terminal monitor when user-defined data types are sent without conversion to a terminal monitor.) Place the address of this routine in the dtd_tmcvt_addr field of the IIADD_DT_DFN structure.
This routine is used by the DBMS Server to format various trace statements and error messages.
Inputs
The inputs for this function are:
scb
Pointer to a SCB.
from_dv
Pointer to a datavalue containing the data to be displayed
to_dv
Pointer to a datavalue that provides the output space. The datavalue's db_data field points to an area of db_length bytes.
Outputs
The outputs for this function are:
to_dv->db_data
Filled with the output
*output_length
Filled with the number of characters placed in to_dv->db_data
Returns
II_STATUS
Last modified date: 11/28/2023