4. Defining Data Types : Required Routines for Data Type Definition : Structure II_DATA VALUE
 
Share this page                  
Structure II_DATA VALUE
The fields in the II_DATA_VALUE structure describe the data values manipulated by the routine. The fields are as follows:
db_datatype
Type identifier of the data.
db_length
Length of the data.
db_data
Pointer to the actual data (if appropriate). This data may not be aligned as required by your machine, and you may need to align the data for correct operation.
The structure of db_data will vary, as described in The Structure of db_data.
db_prec
Precision of the data value. For most data types, this is not needed, and should be ignored on input and set to 0 for output.
For DECIMAL, the high order byte will represent the value's precision (total number of significant digits), and the low order byte will hold the value's scale (the number of these digits that are to the right of an implied decimal point.)