The Data-Conversion sample program
The data-conversion sample program is a skeleton of a data conversion exit routine. Learn about the design of the data-conversion sample.
See the following topics for the name of this program on different platforms:
![[Linux]](../common/../develop/nglinux.gif)
Features shown in the C and COBOL MQI samples for AIX® and Linux®
Features shown in the C and COBOL MQI samples for Windows
Features shown in the C, COBOL and RPG MQI samples for IBM® i
Design of the data-conversion sample
Each data-conversion exit routine converts a single named message format. This skeleton is intended as a wrapper for code fragments generated by the data-conversion exit generation utility program.
The utility produces one code fragment for each data structure; several such structures make up a format, so several code fragments are added to this skeleton to produce a routine to do data conversion of the entire format.
The program then checks whether the conversion is a success or failure, and returns the values required to the caller.