Command reference / db

DSPRCDLCK

Display Record Locks

Shows the record lock status of a physical file member: all locked records, or one relative record number, with the jobs holding and waiting for them.

Allowed environments: *ALL. Positional parameters: 3.

Parameters

FILE Physical file

Specifies the physical file that contains the member whose record locks are shown.

Type
*QUAL
Required
Yes
Case
Uppercase
Qualified parts (object, then library; write LIBRARY/OBJECT)

Physical file Physical file

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

MBR Member

Specifies the member whose record locks are shown; *FIRST is the first member of the file.

Type
*NAME
Required
No
Default
*FIRST
Length
10
Case
Uppercase

Suggested / special values: *FIRST

RCDNBR Record number

Specifies a relative record number, or *ALL for every record currently locked in the member.

Type
*CHAR
Required
No
Default
*ALL
Length
10
Case
Uppercase

Suggested / special values: *ALL

OUTPUT Output

Specifies whether the output is displayed at the requesting work station or printed with the job's spooled output.

Type
*CHAR
Required
No
Default
*
Length
6
Case
Uppercase

Allowed values: *, *PRINT

Examples

DSPRCDLCK FILE(MASTER/PAYROLL) MBR(*FIRST) RCDNBR(1) OUTPUT(*)

Shows the lock status of relative record 1 in the first member of MASTER/PAYROLL.

IBM command documentation

Generated from os/cl/catalog/DSPRCDLCK.json and os/cl/help/DSPRCDLCK.json.