COBOL rule subprograms
When you choose the COBOL rule subprogram option to execute your rules, you retain your existing applications and architecture, and continue to execute rules in COBOL where you currently run your COBOL applications.
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.
- Remove the rules that are embedded in your COBOL applications.
- Author new rules by using Rule Designer.
- Generate one or more COBOL rule subprograms to implement the rules.
- Call the subprograms from your COBOL applications to execute the rules and return the results.
The following figure illustrates how COBOL applications call rule subprograms to execute business rules and return the resulting decision:

COBOL rule subprograms offer limited agility compared to other Decision Server for z/OS execution environments. If you change rules that are implemented as a COBOL rule subprogram, you must regenerate the rule subprogram, recompile the COBOL application, and rebuild the load module. If you change rules that execute on an instance of zRule Execution Server for z/OS or Rule Execution Server on WebSphere® Application Server for z/OS, you simply redeploy the rules to the database or file system where they are stored. Your COBOL application is unaffected by the rule change.
The COBOL rule subprogram execution environment is the best choice if your organization needs to modernize rule execution in stages or if the more agile execution environments do not meet your needs.