Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

CLOSE statement

Function

The CLOSE statement terminates processing of a file with organization XML.

Format


CLOSE {file-name-1} ...


Syntax rules

  1. In addition to names of files with organization XML, names of files which are organized differently can also be specified.

General rules

  1. The rules for the CLOSE statement in  chapter "CLOSE statement" apply for files which do not have organization XML.

  2. 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.

  3. If multiple file names are specified, the effect is the same as if a separate CLOSE statement had been issued for each file name.

  4. 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.