Asynchronous Serial Communications Programmer's Reference Manual (32022-90052)
Chapter 8 161
Intrinsics Reference
FCLOSE
When all files have been closed on a device (referred to as device close),
and the device is no longer under the control of a program or a session,
all device characteristics are returned to those specified by the device’s
configuration.
NOTE
If a disconnected status is received from a terminal your application
has programmatically opened, your application should either FCLOSE
the terminal or terminate.
Parameters
filenum 16-bit signed integer by value (required)
The file number of the file to be closed.
disposition 16-bit signed integer by value (required)
This parameter has no meaning for terminals or serial
printers and should be set to 0.
securitycode 16-bit signed integer by value (required)
This parameter has no meaning for terminals or serial
printers and should be set to 0.
Condition Codes
CCE Request granted.
CCG Not returned by this intrinsic.
CCL Request denied. The file was not closed because an
incorrect filenum was specified. Any outstanding write
I/Os that failed (such as buffered writes that are done
in background) also cause the FCLOSE to fail.
Additional Discussion
See the discussion of closing files in Accessing Files Programmer’s
Guide.