When I run JCL with //PCAPFN DD PATHOPTS=(OCREAT,ORDWR,OTRUNC), // PATHMODE=..., PATH=... // FILEDATA='BINARY'
any existing file gets extended. Yet https://www.ibm.com/docs/en/zos/2.4.0?topic=definition-status-group clearly states that: - OTRUNC - Specifies that the system is to truncate the file length tozero if all the following are true: - The file specified on the PATH parameter exists. - The file is a regular file. - The file successfully opened with ORDWR or OWRONLY. I know I could put an OEXCL on it to fail, but I don't want it to fail, I want it to overwrite or create as necessary. What am I missing here? Surely BINARY doesn't negate the file being "regular", whatever that does mean? Best wishes / Mejores deseos / Meilleurs vœux Ian ... ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
