Guardian Procedure Calls Reference Manual

Condition Code Settings
indicates that the file was not open or, for $RECEIVE or the TFILE, there is an outstanding operation
using an active transaction.
< (CCL)
indicates that the CLOSE was successful.= (CCE)
does not return from CLOSE.> (CCG)
Considerations
Returning space allocation after closing a file
Closing a disk file causes the space that is used by the resident file control block to be returned
to the system main-memory pool if the disk file is not open concurrently.
A temporary disk file is purged if the file was not open concurrently. Any space that is allocated
to that file is made available for other files.
With any file closure, the space allocated to the access control block (ACB) is returned to the
system.
Closing a nowait file
If a CLOSE is issued for a nowait file that has pending operations, any incomplete operations
are canceled. There is no indication as to whether the operation completed or not.
Labeled tape processing
If your system has labeled tape processing enabled, all tape actions (as specified by
tape-disposition) wait for completion.
Closing a process
CLOSE when executed for a process always happens in a nowait manner (even if the process
was opened for waited I/O). The CLOSE procedure returns to the caller after initiating a
process close request and does not wait for completion of the request.
Messages
Process close message
A process can receive a process close system message when it is closed by another process.
You can obtain the process ID of the closer in a subsequent call to LASTRECEIVE or
RECEIVEINFO. For detailed information of system messages sent to processes, see the Guardian
Procedure Errors and Messages Manual.
NOTE: This message is also received if the close is made by the backup process of a process
pair. Therefore, a process can expect two of these messages when being closed by a process
pair.
Related Programming Manuals
For programming information about the CLOSE procedure, see the Enscribe Programmer's Guide.
170 Guardian Procedure Calls (C)