On Fri, 9 Dec 2022 08:54:03 +0000, Ian Worthington wrote: >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 > ... > >I know I could put an OEXCL on it to fail, but I don't want it to fail,... > If you control the JCL but perhaps not the program code, try prefixing a step: //TRUNC EXEC PGM=BPXBATCH, /// PARM='SH : >...'
Until you can submit your Service Request. Allocation should have opened with O_TRUNC. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN