Syntax
| Lock StreamNum
-or-
Lock StreamNum, RecordNum
-or-
Lock StreamNum, [start] To end
| ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Form 1: Lock all of StreamNum.
Form 2: Lock a record (or byte) of StreamNum.
Form 3: Lock a range of records (or bytes) of StreamNum. If start is omitted then lock starting at the first record (or byte).
Note: Be sure to Unlock for each Lock instruction.
Note: For sequential files (Input, Output and Append) lock always affects the entire file.
| ||||||||||
See Also
| |||||||||||
Example
|
|