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 COBOL code generation feature
is deprecated in V8.5. This feature will be removed in a future release
of the product. Use the COBOL Generation Project Migration wizard
to migrate your Rules for COBOL project to a zRule
Execution Server for z/OS® compatible
rule project. See Deprecated features for migration
details.
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:
Results
The new value displays in the Mapped Method table.