Guardian Programming Reference Summary for pTAL and TAL
Procedure Calls Summary (G-N)
Guardian Programming Reference Summary for pTAL and TAL—522631-001
6-22
LOCKFILE
Excludes other processes from accessing a file (and any records within that file). This
procedure operates only on Guardian objects.
LOCKINFO
(Superseded by FILE_GETLOCKINFO_) Provides information about locks (held or
pending) on a DP2 disk volume. This procedure operates only on Guardian objects.
CALL LOCKFILE ( filenum ,[ tag ] );
filenum, INT:value input
tag, INT(32):value output
< (CCL) An error occurred (call FILEINFO).
= (CCE) LOCKFILE was successful.
> (CCG) The file is not a disk file.
error := LOCKINFO ( searchtype
,searchid
,ctlwds
,buffersize
,buffer );
error, INT:value returned value
searchtype, INT:value input
0 Returns lock information for volume searchid.
1 Returns lock information for file searchid.
2 Returns information about locks for volume searchid [0:3] that was requested by the
process identified by the process ID in searchid [4:7].
3 Returns information about locks for volume searchid [0:3] that was requested by the
TMF transaction identified by a transid in searchid words [4:7].
searchid, INT .EXT:ref:12 input
ctlwds, INT .EXT:ref:4 input, output
buffersize, INT:value input
buffer, STRING .EXT:ref:* output