Determining the status of a z/OS UNIX file

Dynamic allocation determines whether the z/OS® UNIX file to be allocated is NEW, OLD, or MOD from the pathname options specified on the DALPOPT text unit:
  • The file is NEW if OEXCL and OCREAT are both specified.
  • The file is MOD if OCREAT is specified but OEXCL is not specified.
  • The file is OLD if OCREAT is not specified or if the DALPOPT text unit is not specified.