z/VSE: How to close a DL/I database accessed by CICS TS
Ingolf24 120000DRN3 Comment (1) Visits (8136)
Yesterday there was a post on VSE-L related to DL/I. The question was how to close a DL/I database accessed by CICS, because of a batch job that needed access to the same database.
Today's blog entry describes briefly how to close and re-open the DL/I database. Thanks for that summary, Richard.
When a DL/I database is open in CICS, it may - depending on VSAM share options and mode of access (R/O, R/W) - need to be closed in CICS before it can be used from a DL/I batch job.
The DL/I system calls STOP and STRT can be used to stop or start a DL/I database in a CICS TS / DL/I online environment.
The easiest way to enter DL/I system calls is to use the (pre-generated) DL/I online test program DLZMDLI0 (MDLI transaction). DLZMDLI0 allows to submit any type of DL/I system call via online dialogs. The user could then e.g. select the DL/I system call STOP or STRT and - together with the name of the database to be stopped or started - pass it to the CICS TS / DL/I online system, one database per dialog. The DLZMDLI0 utility is described in Appendix D of the DL/I Diagnostic Guide. The shown CICS Resource Definitions are based on CICS/VSE, but should work with CICS TS too.
When the database is allocated on multiple datasets, all datasets are stopped or started.
The DL/I books are on the z/VSE documentation web page - here.