OPEN DATASET - access
| UPDATE ...
These mandatory additions are used to open the file for reading, writing, appending, or changing.
FOR INPUT opens the file for reading. By default, the file pointer
is set to the start of the file. If the file specified does not exist,
sy-subrc is set to 8. Writes cannot be performed on a file opened for reads.
FOR OUTPUT opens the file for writing. If the specified file
already exists, its content is deleted. If the file specified does not exist, it is created. Reads are also permitted.
FOR APPENDING opens the file for appending. If the file specified
already exists, it is opened and the file pointer is set at the end of the file. If the file specified
does not exist, it is created. Attempted reads to a file opened with
with the statement
READ DATASET fail, and return the value 4 for
FOR UPDATE opens the file for changes to the existing content.
By default, the file pointer is set to the start of the file. If the specified file does not exist, no file is opened and
sy-subrc is set to 8.