The SHOW command provides a status report on the LOCK mechanism and the LOCK database. The format of the SHOW command is:
SH[OW] [/qualifier...]
LKE> SHOW /ALL
This command displays all LOCKs mapped to all regions of the current Global Directory.
The optional qualifiers are:
/A[LL]
/L[OCK]
/[NO]C[RIT]
/O[UTPUT]=file-spec
/P[ID]=process id
/R[EGION]=region-name
/W[AIT]
By default, SHOW displays /A[LL].
The SHOW command reports active LOCKs. Information includes the LOCK resource name and the process identification (PID) of the LOCK owner. The OpenVMS privileges of the LKE process determine whether LKE can display the state of any other process. Since the SHOW command is a snapshot, and the LOCKs in a running GT.M application constantly fluctuate, the results of a SHOW may become outdated immediately.