Conversion and key templates
In the COMMAREA, fields UNVDTMP and UNVDLNP point to the conversion template and its length.
Fields UNVKTMP and UNVKLNP point to the key template and its length. Figure 1 illustrates the use and meaning of these fields.
Figure 1. Parameter fields and the conversion templates

Each type of template consists of field conversion records, one for each field in the data record or key. Each field conversion record has the same layout, shown under Field conversion records, and mapped by a supplied DSECT, DFHCNVDS (see DFHCNVDS, DSECT for field conversion records). Figure 2 shows the relationship between a template, field conversion records, and DFHCNVDS. The figure shows DFHCNVDS overlaying the first field conversion record in a template for a data record or key with six fields.
Figure 2. Field conversion records and a conversion
or key template
