The ENQ and DEQ commands are used to serialize access to a shared resource.
In earlier releases of CICS, these commands were limited to the scope of CICS tasks running in the same region, and could not be used to serialize access to a resource shared by tasks in different regions. Now, if the ENQs and DEQs are supported by appropriate ENQMODEL resource definitions (see ENQMODEL resource definitions for a description of ENQMODELs) they can have sysplex-wide scope.
This is primarily of interest to the system programmer who determines transaction routing decisions, but application programmers should be aware of the advantages now available.
Changes to the CICS enqueue/dequeue function extend the CICS application programming interface to provide an enqueue mechanism that serializes access to a named resource across a specified set of CICS regions operating within a sysplex. This applies equally to a CICSplex within a single MVS™ image and to a CICSplex that resides in more than one MVS. Sysplex-wide enqueue is supported only for a resource, and not for an enqueue on an address.
The recommended way to ensure this is for the CICS regions to share a CSD, and for the initialization group lists to include the same ENQMODEL groups.
Existing applications can use sysplex enqueues by defining appropriate ENQMODELs, without any change to the application programs.