When a job is submitted, it gets placed into the Input queue. If an initiator is available to run the JCL for the specified class, the job is moved to the Active queue at which point the job should execute, unless the job requires locks on files that are already locked. If this is the case, the JCL is placed into a Waiting mode.
You can browse/display the locks in the GLM and the cluster clients. When an Enterprise Server Cluster is active you may browse all global locks held on the Global Lock Manager (GLM), and you can also identify locks for a specific JCL, initiator or client. On a cluster client you can browse all the global and its own local locks. You can do this using ESMAC or via the caslock command.
Both GLM and Enterprise Server Cluster clients have tools to allow you to browse active locks. On the GLM, all cluster-wide global locks can be browsed. A cluster client can only display its own global locks and all of its local locks.
To view the locks on a GLM, visit the corresponding ESMAC page. In the Resources pane, select Active, then select Locks (CASRDO33). The display will resemble the following:
The above screenshot illustrates a situation where job JOB01364 (jobname MYLOCK) running in a batch initiator (PID 8716) in Enterprise Server Cluster client ESCLSLV1 owns locks on several datasets, including a dataset identified by res-ID 1. In the Resource Details group, res-ID 1 is defined as belonging to Queue SYSZDSN with Resource Name SYSI.CLUSTER.MYFILE.
At the same time, job number JOB01365 (for which the job name is not yet known) running in a batch initiator (PID 12228) in Enterprise Server Cluster client ESCLSLV1 is in a wait state as it, too, requires an exclusive lock on the same resource: res-ID 1, SYSI.CLUSTER.MYFILE.
Usage: caslock [/a /l /r /u /p /c] /a[client_applid] Remove locks for specified APPLID of the client region /l List all active locks /r[region_name] The name of the region to send the request to /u[username] The user's username /p[password] The user's password /c[group] The user's group
Lock Ownership PID res-ID Type State Persistence Seq 8720 t:001 JOB01485 JRX0033 ( MYLOCK ) (ESCLSLV1/ 10392) 1 Exclusive Controlled Task 1 2 Exclusive Controlled Task 1 3 Exclusive Controlled Task 1 4 Exclusive Controlled Task 1 5 Exclusive Controlled Task 1 6 Exclusive Controlled Task 1 7 Exclusive Controlled Task 1 10660 t:002 ES Subsystem 8 Exclusive Controlled Server 1 Resource Details res-ID Queue Length Resource Name 1 SYSZDSN 19 SYSI.CLUSTER.MYFILE 2 SYSZDSN 20 SYSI.CLUSTER.SPEC002 3 SYSZDSN 20 SYSI.CLUSTER.SPEC001 4 SYSZDSN 20 SYSI.CLUSTER.PATT001 5 SYSZDSN 20 SYSI.CLUSTER.GENE002 6 SYSZDSN 20 SYSI.CLUSTER.GENE001 7 SYSZJOBN 8 JRX0033 8 SYSZJOBD 8 JRX0034
You can use caslock to view locks in a PAC or LOCKDB environment. Querying the locks for an enterprise server region that is a member of a PAC will return a list of all the locks associated with that PAC. For example:
caslock /l /rRAS1 Global Locks (Held In Database) =============================== OwnedLocks ---------- PID TID Task Region/PAC UID Scope Share Mode QNAME RNAME 51580 75284 31 70A1C876A72B0E421A7E06A627DE5214 System Exclusive SYSZCICS aaa.bvvvc.ddddd System MYPAC Systems Exclusive SYSZDSN CICS.SSTM.OUTJCL System MYPAC Systems Exclusive SYSZDSN SIS.ARQTEC.FICHERO.PLIMSG
where RAS1 is a region within the PAC.
Lock removal functionality is provided to enable troubleshooting in specific circumstances. Global locks should only be removed when a permanent connection failure occurs between an Enterprise Server Cluster client and the Enterprise Server Cluster manager, and locks are held preventing jobs from executing in other cluster clients still active in the cluster.
TXCS3032S Connection to ES Cluster manager GLM APPLID (GLM SYSID) is disabled, verify and release global locks on ES cluster manageror
TXCS3033S Attempt to connect to a disabled ES Cluster manager GLM APPLID (GLM SYSID) , verify and release global locks on ES cluster manager
The system administrator needs to take action, which must include identifying whether this region holds global locks that will prevent work units running in other active cluster clients from executing successfully. If this is the case, the system administrator needs to use ESMAC on the GLM or the caslock command to remove all the locks held by the failing Enterprise Server Cluster client.
At the bottom of the page, the
Remove Locks button will allow the removal of all the locks for an APPLID. In the client
APPLID entry field, enter the APPLID of the Enterprise Server Cluster client you want to remove the locks for.