Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

UNDEFINEDFILE condition

Status
UNDEFINEDFILE is always enabled.
Result
Specified files are undefined to the application program.
Cause and syntax
The UNDEFINEDFILE input/output condition is raised whenever an unsuccessful attempt to open a file is made. If the attempt is made by means of an OPEN statement that specifies more than one file, the condition is raised after attempts to open all specified files.

If UNDEFINEDFILE is raised for more than one file in the same OPEN statement, ON-units are executed according to the order of appearance (taken from left to right) of the file names in that OPEN statement.

If UNDEFINEDFILE is raised by an implicit file opening in a data transmission statement, upon normal return from the ON-unit, processing continues with the remainder of the data transmission statement. If the file was not opened in the ON-unit, the statement cannot continue and the ERROR condition is raised.

The UNDEFINEDFILE condition is raised not only by conflicting attributes (such as DIRECT with PRINT), but also by the following:

Read syntax diagramSkip visual syntax diagram>>-UNDEFINEDFILE--(file-reference)-----------------------------><
 

The file-reference must be a scalar reference.

Abbreviation
UNDF
Implicit action
A message is printed and the ERROR condition is raised.
Normal return
Upon the normal completion of the final ON-unit, control is given to the statement immediately following the statement that raised the condition.
Condition codes
80-89, 91-95

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)