Example of the PATHOPTS parameter

//DD1  DD  PATH='/usr/applics/pay.time',PATHDISP=(KEEP,DELETE),
//         PATHOPTS=(OWRONLY,OCREAT,OEXCL),PATHMODE=(SIRWXU,SIRGRP)

OCREAT in the PATHOPTS parameter specifies that the file named in the PATH parameter be created. OWRONLY requests that the system open the file only for writing. OEXCL specifies that, if the file already exists, the system will not create a file and the job step will fail.