FILELOCKTLIMIT (File Lock Time Limit)

The FILELOCKTLIMIT (File Lock Time Limit) command interrogates, establishes, and modifies the system-wide time limit used by the record-locking protocols. The default value is 0 (unlimited). For detailed information about the record-locking protocols, refer to COBOL ANSI-85, Vol. 1 and the description of the RECORDLOCKER procedure in the MCP System Interfaces Programming Reference Manual.

Syntax

Explanation

FILELOCKTLIMIT

Displays the system-wide default time limit used by the record-locking protocols, which specifies the maximum time that the record-locking protocols wait when they attempt to obtain a read or write lock over some file region. If a FILELOCKTLIMIT command has never been entered with an integer value, the system behaves as if FILELOCKTLIMIT 0 had been entered.

FILELOCKTLIMIT <integer>

Establishes or changes the system-wide time limit used by the record-locking protocols. The time limit is expressed in seconds.

Examples

Example 1

This example shows a query for the FILELOCKTLIMIT command. The response shows that the system is using the default value of unlimited.

FILELOCKTLIMIT
     FILELOCKTLIMIT = UNLIMITED

Example 2

This example changes the FILELOCKTLIMIT to 30 seconds.

FILELOCKTLIMIT 30
     FILELOCKTLIMIT = 30 SECONDS