File status

The MVS™ system uses the PATHOPTS parameter to determine the status for the file, as follows:
  • OLD status:
    • PATHOPTS is not on the DD statement.
    • PATHOPTS does not contain a file option.
    • PATHOPTS does not contain OCREAT.
  • MOD status: PATHOPTS contains OCREAT and OAPPEND, but not OEXCL.
  • NEW status: PATHOPTS contains both OCREAT and OEXCL.
Note:
  1. The DISP parameter cannot appear on a DD statement containing the PATH parameter.
  2. There is no direct correspondence between the various PATHOPTS settings and the DISP status parameter.