COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-115
LOCKFILE
Usage Considerations:
•
Action of the INSPECT CONVERTING Statement
The compiler treats a statement of the form
INSPECT source-string CONVERTING compare-string
TO replace-string
as if it were a statement of the form
INSPECT source-string REPLACING
ALL comp-char-1 BY repl-char-1
ALL comp-char-2 BY repl-char-2 ...
In the INSPECT CONVERTING statement, the n th character of compare-
string corresponds to the n th character of replace-string.
•
Restrictions on Overlapping Operands
The storage area referenced by compare-string, replace-string, or
delim-string cannot be the same as the storage area referred to by source-
string, and must not overlap the storage area referred to by source-string.
Violation of this rule produces unpredictable results.
•
See these usage considerations in INSPECT TALLYING:
°
How Parameter Categories Affect INSPECT
°
Comparison Operation
°
BEFORE and AFTER Phrases
LOCKFILE
LOCKFILE prevents other processes from accessing the records in a file. All records
remain locked until either:
•
You use an UNLOCKFILE statement.
•
You close the file.
•
The run unit terminates.
•
You are executing a transaction with TMF and the transaction ends.
file-name
is the file description name of the file to lock. For LOCKFILE to work, file-name
must specify a disk file.
LOCKFILE file-name
TIME LIMIT wait-time
VST176.vsd