Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A <close-statement> concludes input/output to a file on the system, and removes the association between a <file-number> and its external data file.
-
close-statement = "Reset" / ("Close" [file-number-list]) file-number-list = file-number *[ "," file-number]
Static Semantics.
§ If <file-number-list> is absent the effect is as if there was a <file-number-list> consisting of all the integers in the inclusive range of 1 to 511.
Runtime Semantics.
§ If any file number value (section 5.4.5.1.1) in the <file-number-list> is not a currently-open (section 5.4.5.1) file number (section 5.4.5) then no action is taken for that file number. For each file number value from <file-number-list> that is currently-open, any necessary implementation-specific processing that can be required to complete previously executed file statements using that file number is performed to completion and all implementation-specific locking mechanisms associated with that file number are released. Finally, the association between the file number and the external file number is discarded. The file number is no longer currently-open and can be reused in a subsequently executed <open-statement>.