Updating the BOM when a copybook changes

You can update a BOM that was generated from a COBOL copybook-based XOM.

About this task

When you modify, add, or remove a copybook on which your XOM is based, you can automatically update the corresponding BOM in the same flow.

Procedure

To update the BOM after a copybook has changed:

  1. Right-click your rule project and then select Properties > COBOL Management > COBOL Execution Object Model.
  2. On the COBOL Execution Object Model page, select the COBOL XOM and then click Update. The Import COBOL XOM page shows the COBOL XOM name, as well as the copybook file names and paths, if you have based the XOM on more than one copybook.
  3. Select a copybook and edit it or remove it, as appropriate. You can also add a new copybook.
  4. Click Next to display the summary of the default Java™ types and class attributes derived from each COBOL item in the copybook. At the bottom of this page, you see a check box labelled Update BOM.
  5. Make sure the check box Update BOM is selected.
    Note: If the Update BOM check box is disabled, it means that no BOM entry has been created from the COBOL copybook-based Java XOM.
  6. Click Finish.
  7. Click OK to close the COBOL Execution Object Model properties window.
    You can also update the BOM in the following way:
    1. In the Rule Explorer, in the bom folder, right-click the BOM entry you want to update and select BOM Update.
    2. Click Configure Cobol XOM.

      This brings you to the Import COBOL XOM page where you can add, edit, or remove copybooks.

    3. Proceed until you reach the last page and click Finish.

Results

The BOM is updated based on the changes that you have applied to the COBOL XOM.