Function
The CLOSE statement terminates processing of a file with organization XML.
Format
CLOSE {file-name-1} ...
Syntax rules
In addition to names of files with organization XML, names of files which are organized differently can also be specified.
General rules
The rules for the CLOSE statement in chapter "CLOSE statement" apply for files which do not have organization XML.
If the file-name-1 file is already closed, the CLOSE statement is not successful and the I-O status of the file is set to 42.
If multiple file names are specified, the effect is the same as if a separate CLOSE statement had been issued for each file name.
If, for file-name-1, processing of an XML document has been started but has not yet been terminated by means of a CLOSE DOCUMENT statement, an implicit CLOSE DOCUMENT statement is also executed with the CLOSE statement.