Object Management Extension User Guide > Object Management Extension User Guide > Defining Data Types > hg_dtln Routine--Provide Type and Length for Histogram Value
Was this helpful?
hg_dtln Routine--Provide Type and Length for Histogram Value
The hg_dtln routine provides the data type and length for a histogram value for a given data type.
This routine builds a datavalue, dv_histogram, which describes the data type and length of the histogram value for the data type specified in the input dv_from. Place the address of this routine in the dtd_hg_dtln_addr field of the IIADD_DT_DFN structure. If the II_DT_NOHISTOGRAM attribute is present, then this routine is not necessary.
Inputs
The inputs for this function are:
scb
Pointer to an SCB
dv_from
Datavalue describing the data type:
db_datatype
Data type name
db_length
Length of the data type
dv_histogram
Pointer to the datavalue provided to describe the histogram value
Outputs
The outputs for this function are:
dv_histogram
Filled with the required type and length
db_datatype
The data type
db_length
The data length
db_prec
Must be 0
Returns
II_STATUS
Last modified date: 01/30/2023