On Fri, 9 Dec 2022 08:54:03 +, 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
>
On Tue, 13 Dec 2022 13:07:39 -0600, Kirk Wolf wrote:
>It's not surprising that the C library is able to override the DD (JFCB) at
>open time.
>https://www.ibm.com/docs/en/zos/2.1.0?topic=processing-filling-in-dcb
>
>I don't think that IBM documents this very well for DD: that reference
>PATH
It's not surprising that the C library is able to override the DD (JFCB) at
open time.
https://www.ibm.com/docs/en/zos/2.1.0?topic=processing-filling-in-dcb
I don't think that IBM documents this very well for DD: that reference PATH
specifications.
Kirk Wolf
Dovetailed Technologies, LLC
htt
On Tue, 13 Dec 2022 08:31:55 +, Ian Worthington wrote:
>Your suspicions were quite correct. After some futzing around the opening
>logic finally does:
>
> if ((pcapfd = fopen("DD:PCAPFN", "ab+,lrecl=1")) == NULL) {
>
>which looks like it must takes precedence over the OTRUNC.
>
Interesting
Your suspicions were quite correct. After some futzing around the opening
logic finally does:
if ((pcapfd = fopen("DD:PCAPFN", "ab+,lrecl=1")) == NULL) {
which looks like it must takes precedence over the OTRUNC.
Many thanks for pointing me in the right direction.
Best wishes / Mejores dese
On Fri, 9 Dec 2022 08:54:03 +, Ian Worthington wrote:
>When I run JCL with
>//PCAPFN DD PATHOPTS=(OCREAT,ORDWR,OTRUNC),
>// PATHMODE=..., PATH=... // FILEDATA='BINARY'
>
>any existing file gets extended. Yet
>...
> - OTRUNC
> - Specifies that the system is to truncat
On Fri, 9 Dec 2022 08:54:03 +, Ian Worthington wrote:
>When I run JCL with
>//PCAPFN DD PATHOPTS=(OCREAT,ORDWR,OTRUNC),
>// PATHMODE=..., PATH=... // FILEDATA='BINARY'
>
>any existing file gets extended. Yet
>
What program did you name on the EXEC PGM= statement?
It's possible
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 s