OPEN DATASET dset FOR access IN mode [position]
This statement opens the file specified in
dset for the access specified
access in a storage
mode specified in
dset expects a character-like data object containing the
physical name of the file. The file must not yet be open in the current program; otherwise a handleable exception is raised.
Access to a file whose name
dset is injected into a program from outside is a serious security risk. Any names passed to a program from outside must be checked thoroughly before being used. See
|0||The file was opened.|
|8||The operating system could not open the file.|
Cause: The file is already open.
Cause: The desired conversion is not supported. (Due to specification of
invalid code page or of language not supported in the conversion, with
SET LOCALE LANGUAGE.)
Cause: Internal error in the conversion.
Cause: No authorization for access to file
Cause: Authorization for access to this file is missing in
OPEN DATASETwith the addition
Cause: The operating system does not support pipes.
Cause: Maximum number of open files exceeded.
Cause: An attempt was made to open a pipe that is already open.