Planning to use the latch manager callable services

Before using the latch manager to serialize resources for your application, you should perform the following tasks:

Task Reference
1.
Determine how the application is to serialize resources using the latch manager services:
a.
Identify the resources that your application needs to serialize.
b.
Assign latches to those resources in such a way that contention for those resources is minimized.

Determine the latch attributes to use for each latch set and when the attribute needs to be changed.

Determine if any latch deadlock detections should be specified for each latch set and what level the detection is.

Creating a latch set (ISGLCRT and ISGLCR64 services)Specifying a latch's identity or usage
2.
Include or copy the appropriate latch manager interface definition file (IDF) into programs that invoke the latch manager services.
Including a latch manager interface definition file (IDF)
3.
Linkedit a linkage assist routine into each module that calls the latch manager services (optional).
Loading the linkage assist routines
4.
Provide recovery for the latch manager.
Providing recovery for the latch manager

There are some considerations to be aware of when using enclaves for tasks that serialize resources using the latch manager callable services. For details, see “Using ENQ/DEQ or Latch Manager Services With Enclaves” in z/OS MVS Programming: Workload Management Services.

Once you have completed the tasks, you can begin to use the latch manager services described in Guide to the latch manager callable services.