Function
The OPEN statement opens a file with organization XML for processing.
Format
OPEN INPUT {file-name-1} ... [ END-OPEN ]
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 OPEN statement (see section "OPEN statement") apply for files which do not have organization XML.
If the file-name-1 file is already opened, the OPEN statement is not successful and the I-O status of the file is set to 41.
If multiple file names are specified, the effect is the same as if a separate OPEN statement had been issued for each file name.
After a successful OPEN statement, the file specified by file-name-1 is available and is in open status. If the file is contained in memory, the OPEN statement sets up the connection to memory and evaluates any data items specified in the ASSIGN clause for pointers and length (see section "ASSIGN clause").
After a successful OPEN statement, the file position indicator points to the first XML document, provided the file is not empty. If the file is empty, or if OPTIONAL is specified in the file control entry, the file position indicator indicates 'end of file'.