Clear

Use the CLEAR command to remove active LOCKs.

[Caution]

FIS recommends restricting the use of the LKE CLEAR facility to debugging environments; removing LOCKs in a production environment typically violates application design assumptions and can cause aberrant process behavior. GT.M automatically removes abandoned LOCKs so it is typically safer to MUPIP STOP a process that is inappropriately hanging on to a LOCK.

The format of the CLEAR command is:

C[LEAR] [-qualifier...]

The optional qualifiers are:

-A[LL] 
-L[OCK] 
-[NO]C[RIT] 
-[NO]EXACT
-[NO]I[NTERACTIVE] 
-O[UTPUT]="file-name" 
-P[ID]=pid
-R[EGION]=region-name

By default, CLEAR operates interactively (-INTERACTIVE).

Qualifiers for CLEAR

-A[LL]

Specifies all current LOCKs.

-[NO]C[RIT]

Allows LKE CLEAR to work even if another process is holding a critical section.

[Caution]

This can damage current LOCKs and the LOCK mechanism. It is intended for use only under the direction of FIS.

By default LKE operates in CRIT mode and ensures a consistent view of LOCKs by using the database critical section(s).

-[NO]EXACT

Limits the CLEAR command to the exact resource name specified with -LOCK=resource_name. NOEXACT (the default) treats the specified resource name as a prefix and works not only on it, but also on any of its descendants, since their existence effectively LOCK their parent tree.

-L[OCK]=resource_name

Unless used with -EXACT, specifies the leading prefix for an implicit wild card search of all locks that start with the resource_name.

-[NO]I[NTERACTIVE]

Interactively clears one LOCK at a time. LKE displays each current LOCK with the PID of the owner process and prompts for verification that the LOCK should be cleared. LKE retains the LOCK for any response other than Y[ES].

-O[UTPUT]="file-name"

Directs the reporting of all specified LOCKs to a file.

-P[ID]=pid

Specifies the process identification number that holds a LOCK on a resource name.

-R[EGION]=region-name

region-namespecifies the region that holds the locked resource names.