Changing data definitions for mapped method parameters

You can change certain data definitions for mapped methods using the COBOL Data Type Editor.

About this task

The data type definitions generated during COBOL code generation are aligned with the COBOL type settings in the COBOL configuration. You can view the default COBOL types from on the Default COBOL Types Settings tab on the COBOL Properties page. To view them, right-click the rule project and then click Properties > COBOL Management > Default COBOL Types Settings. You can change the settings from here, which resets the values at project level.

You can also change certain definition values in the COBOL mapped method data table. You can change some COBOL PIC and COBOL Usage values, depending on the Java™ type. For example, if you define the mapped method public String method1 (int arg1, double arg2), you can change the COBOL field length for argument int arg1.

Procedure

To change COBOL type definitions:

  1. In the Rule Explorer, select the method whose data item definition you want to redefine.
  2. In the Mapped Method table, activate the COBOL Data Type Editor by double-clicking the table cell you want to change.

    Not all table cells are editable. Click in the table cell to check if you can edit it.

  3. Save your work.

Results

The new value displays in the Mapped Method table.