Rational Developer for System z
PL/I for Windows, Version 8.0, Programming Guide

Opening a file

The execution of a PL/I OPEN statement associates a file with a data set. This requires merging of the information describing the file and the data set. The information is merged using the following order of precedence:

  1. Attributes on the OPEN statement
  2. ENVIRONMENT options on a file declaration
  3. Values in TITLE option of the OPEN statement when '/' is used
  4. Values in the DD:ddname environment variable
  5. IBM defaults.

When the data set being opened is not a workstation device, the paths specified in the DPATH environment variable are searched for the data set. If the data set is not found, and the file has the OUTPUT attribute, the data set is created in the current directory.

If any conflict is detected between file attributes and data set characteristics, the UNDEFINEDFILE condition is raised.


Terms of use | Feedback

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