Guardian Programming Reference Summary for pTAL and TAL

Procedure Calls Summary (A-C)
Guardian Programming Reference Summary for pTAL and TAL522631-001
4-28
CLOSE^FILE
Closes a file. CLOSE^FILE is a sequential I/O (SIO) procedure and can be used only
with files that have been opened by OPEN^FILE.
filenum, INT:value input
tape-disposition, INT:value
<13:15>
input
0 Rewind and unload, do not wait for completion.
1 Rewind, take offline, do not wait for completion.
2 Rewind, leave online, do not wait for completion.
3 Rewind, leave online, wait for completion.
4 Do not rewind, but leave the file online.
< (CCL) The file was not open, or for $RECEIVE or the TFILE, there is an outstanding
operation using an active transaction.
= (CCE) The close operation was successful.
error := CLOSE^FILE ( { common-fcb }
{ file-fcb }
,[ tape-disposition ] );
error, INT returned value
common-fcb, INT:ref:* input
file-fcb, INT:ref:* input
tape-disposition, INT:value input
0 Rewind, unload, and do not wait for completion.
1 Rewind, take offline, and do not wait for completion.
2 Rewind, leave online, and do not wait for completion.
3 Rewind, leave online, and wait for completion.
4 Do not rewind, leave the file online.