OPEN
This statement is used withmode=OUTPUT
to open a file or the dialog area so that a subsequentWRITE
statement can pass text to it, and withmode=INPUT
for a subsequentREAD
statements.
The name of the file to (or from) which to pass the text, or the dialog area. If the file opened for output does not exist, this statement creates a new file. If the file exists, theOPEN
statement overwrites the existing contents of the file.To open the dialog area, use the string‘DIALOG’
(with apostrophes) for this parameter. Open the dialog area so you can pass run-time messages to it. Ifmode=OUTPUT
, theOPEN
statement opens a file or the dialog area so a subsequentWRITE
statement can pass text to it.Ifmode=INPUT
, theOPEN
statement opens a file or the dialog area so a subsequentREAD
statement can pass text to it.
•stm_success
—Successful execution of the statement.
•stm_error
—Failure.The name of the file is specified in accordance with the conventions of the operating system. If the directory is not specified as part of the file name, the workarea is searched for the file. If the file opened for output does not exist, this statement creates a new file. If the file exists, it is initialized by theOPEN
statement (the written information overwrites the existing contents of the file).
●
●
●