Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Using the bcdcommit() and bcdrollback() helpers from COBOL z/OS Batch Runtime Planning and User's Guide SA23-1376-00 |
|
The bcdcommit() and bcdrollback() helpers can be used from a COBOL application, although there is not as much advantage as when called from PL/I. Since COBOL supports the “invoke” statement, the batch container commit and rollback routines can be called directly with this verb. However, this does a serve again as a simple model for building any COBOL calling into the Java™ environment -- including source, compile, and bind options. Figure 1 shows a COBOL application calling the bcdcommit() and bcdrollback() helpers. Figure 1. Sample COBOL
Calling bcdcommit() and bcdrollback() Helpers
Figure 2 is sample JCL to compile the COBOL program in Figure 1. Figure 2. Sample COBOL
Compile and Bind JCL for bcdcommit() and bcdrollback() Helpers
|
Copyright IBM Corporation 1990, 2014
|