LKSH entry for TPLOCK shared
- Entry:
- LKSH
- VIT option:
- LOCK
- Event:
- TPLOCK shared
- VIT processing module:
- ISTRACLK
- Control is returned to:
- ISTAPC35
This trace record identifies a request for a shared VTAM® lock and the status of a lock. Shared locks can be held by more than one VTAM process at a time. If a WAIT entry immediately follows this entry, it may be because a wait-for-lock condition exists. Look at the lockword in the trace output to see if the lock is already held.
Locks obtained by LKEH are eventually released by UNLK
or ULKA. See z/OS Communications Server: SNA Diagnosis Vol 1, Techniques and Procedures for a list of VTAM locks.

- Byte (hex)
- Contents
- 00–03
- Record ID: C"LKSH"
- 04
- ID is the primary address space ID (ASID). This field is 0 if the ASID is greater than X'FF'.
- 05
- Indicates lock wait status:
- X'00'
- WAIT
- X'80'
- NOWAIT
- 06–07
- Level of lock to be obtained
- 08–0B
- Address of lock to be obtained
- 0C–0F
- CRA lock account word (CRALKACT)
- 10–13
- Address of the issuer of the TPLOCK macro
- 14–1A
- Lockword pointed to by address in bytes 08-0B
- 1B
- The LOCK ID field. See z/OS Communications Server: SNA Diagnosis Vol 1, Techniques and Procedures for a list of VTAM locks.
- 1C–1F
- Request parameter header (RPH) address