You apply your custom type converter during the COBOL XOM
generation process.
About this task
When you generate the COBOL XOM, you can use user-defined
type converters to change default type mappings.
Procedure
To apply a custom type converter:
- During COBOL XOM generation, on the Configure
COBOL XOM Mapping page, right-click the row that contains
the type you want to change and then click Add converter.
- On the Configure Converter Settings page,
select the custom type converter that you want to use.
For
example, if you created a boolean type converter named Approved,
you might add the Key and the true and false
values:
| Key |
Value |
| C TRUE-VALUE |
1 |
| C FALSE-VALUE |
0 |
The Key property must match the
key definition in the converter.
- Click OK to close the Configure
Converter Settings window.
On the “Configure
COBOL XOM Mapping” page, the Converter applied column
displays Yes, indicating that the default mapping has
been changed.
- Click Finish to close the Configure
COBOL XOM Mapping page, and then click OK to
generate the XOM.