Use user/CICS conversion
when the resource contains some fields that can be converted by standard
means, and some that require nonstandard conversion.
Procedure
- Create a conversion template.
- Specify the USREXIT keyword on the DFHCNV TYPE=ENTRY macro
that defines the resource.
- If you specify USREXIT=YES, CICS calls DFHUCNV to convert
the data.
- If you specify USREXIT=program,
CICS calls the named program to convert the data.
- Specify DATATYP=USERDATA on the DFHCNV TYPE=FIELD macros
that define the nonstandard data fields.
- Optional: Define nonstandard fields with
a USRTYPE value in the range X'50' through X'80'
These values are passed to your user program, and can be used
to distinguish between different types of nonstandard field.
- Define standard fields as DATATYP=CHARACTER, PD, BINARY,
GRAPHIC, or NUMERIC, as appropriate.
- Supply a user-written version of DFHUCNV or a differently-named
conversion program to handle the nonstandard fields.