OPEN
COBOL | JAVA |
OPEN | openFile |
Syntax
openFile ( <file>, AmtCobolFileOpenMode.<mode>, <lockfile> )
Parameter(s)
<file>
The file to open.
<mode>
The mode to be used for opening the file, e.g. Input, Output, InputOutput, Extend.
<lockfile>
Locks the file when set to true.
Example(s)
COBOL | Java |
OPEN INPUT SequentialFile. |
openFile(sequentialfile, FileOpenMode.INPUT, false); |
OPEN OUTPUT IndexedFile. |
openFile(indexedfile, FileOpenMode.OUTPUT, false); |
OPEN EXTEND RelativeFile. |
openFile(relativefile, FileOpenMode.EXTEND, false); |
OPEN INPUT SequentialFile I-O IndexedFile. |
openFile(sequentialfile, FileOpenMode.INPUT, false); openFile(indexedfile, FileOpenMode.I_O, false); |