Conversion and key templates

Templates are table entries defining fields in a data area or key that are to be converted and the conversion method to be applied to each field. There are two types of template: conversion templates and key templates.

  • A conversion template is defined by one or more DFHCNV TYPE=FIELD macros following a DFHCNV TYPE=SELECT macro.
  • A key template is defined by of one or more DFHCNV TYPE=FIELD macros following a DFHCNV TYPE=KEY macro.

Both types of template are terminated by the next non-FIELD macro in the table definition. Figure 2 shows templates within a complete conversion table definition.