This document describes the problems and solutions of WebSphere Application Server WebSphere Liberty Batch: z/OS dataset contention.
This IBM white paper (WP102667, September 26, 2016) explains z/OS dataset contention that arises when WebSphere Liberty Batch jobs are integrated with traditional JCL batch jobs. It describes how JCL DD statements map to GRS ENQs and why an exclusive ENQ held by a JCL job can block a Liberty Batch job from opening a dataset.
The paper reviews dataset allocation rules, seize and hold behavior, and the DSENQSHR JOB card keyword, then compares DD statements with dynamic allocation. It concludes with jobs and job groups and scenarios and solutions for sharing datasets between JCL and Liberty Batch, including error handling.
The JCL job that created the dataset holds an exclusive ENQ on the dataset name, so the Liberty Batch job cannot open it while another address space has it locked.
DISP=SHR maps to a shared ENQ, while NEW, OLD, and MOD map to an exclusive ENQ.
No. If datasets are dynamically allocated instead of using DD statements, JES cannot help avoid deadlocks.