Monitoring generated COBOL program usage
To monitor program usage, you set a flag in Rule Designer so that the generated COBOL program can connect to zRule Execution Server for z/OS® at run time.
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.
To collect program usage data, the generated COBOL program must be able to connect to zRule Execution Server for z/OS at run time. To enable this connection, you set the usage data collection flag in Rule Designer at rule project level before you generate the COBOL code.
To enable the connection to zRule Execution Server for z/OS, Decision Server for z/OS includes the following predefined COBOL copybooks in the ++HBRHLQ++.SHBRCOBC library:
-
BRCCONST: contains the constant data items that are required to connect to and disconnect from zRule Execution Server for z/OS.
-
BRCCONWS: contains the Working Storage elements that are required to connect to and disconnect from zRule Execution Server for z/OS.
-
BRCCINIT: contains the code that is required to connect to zRule Execution Server for z/OS.
-
BRCCTERM: contains the code that is required to disconnect from zRule Execution Server for z/OS.
BRC is the registered IBM® product code for Decision Server.
When you generate the COBOL code, Decision Server adds a reference to the BRCCONST and BRCCONWS copybooks in the WORKING-STORAGE SECTION. It also adds the code that handles System Management Facility (SMF) data collection, in the PROCEDURE DIVISION.
You must also perform some additional tasks when you compile, link, and run the generated COBOL program. See Configuring your system for usage data collection.
Procedure
To enable or disable usage data collection:
Results
By setting the usage data collection flag, you enable SMF data collection so that data can be collected when the generated COBOL program runs in z/OS.
The "enabled" Collect Usage Data setting does not change the behavior of the generated COBOL code and the rules it executes.