Configuring code generation for a CICS program

To execute your rules in a CICS® application, you must configure the CICS usage option before generating the COBOL code.

About this task

Note:
Deprecation icon
Deprecated feature: 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.

You can integrate the COBOL code for rule execution into a CICS program using CICS channels and containers. If you use CICS channels and containers, you do not have to link the generated COBOL code into each calling program, and the generated code does not have to reside in the same CICS region as the calling program.

You define the CICS channel and container parameters before you generate the COBOL code. You define them in Rule Designer, at project level. You can then generate the code for CICS in Rule Designer, Decision Center, or using Ant.

When you generate the code, the channels and containers are created in a CICS wrapper program.

Procedure

To configure the CICS parameters:

  1. Right-click the rule project for which you want to generate the COBOL code and then click Properties > COBOL Management > COBOL Code Generation.
  2. On the COBOL Code Generation page, click the CICS tab.

    The following figure shows the CICS tab in the Properties window:

    CICS configuration
  3. In the Channel field, type a name for the CICS channel.

    A channel name can have a maximum of 16 characters. You can use alphanumerics and any special characters accepted by CICS. For example, MINILOAN_chan01.

  4. In the Containers table, enter a container name for each Top Level data item listed in the Parameter Item column.

    The same validation rules apply to container names as to channel names.

  5. Click OK.

Results

You can now generate the COBOL code for CICS.