Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

OPEN, CLOSE

Processing of an XML document must always begin and end with the OPEN and CLOSE statements normally used in file processing, irrespective of whether the document is located in a file or memory.

OPEN only permits the INPUT open mode for XML files. CLOSE permits none of the additional phrases.

These statements have the same effect for documents in a file as for non-XML files. For documents contained in memory, the connection to memory is established or a data point and the length from the ASSIGN clause are evaluated when the OPEN statement is executed.

The values which were possible for the I-O status in the previous method of file processing are to be expected in both types of document.