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:xxxx that reference
>PATH specifications.
>
But IIRC the documentation used to state that Allocation performs an open with
the PATHOPTS to verify that the file exists or can be created.
o Would that not perform the OTRUNC?
o Is it no longer true, or not documented?
Easy enough to test with:
//STEP EXEC PGM=IEFBR14
//WHATEVER DD PATH='/tmp/wombat',
// PATHOPTS=(OCREAT,OWRONLY,OTRUNC)
Does it create the file?
Does it truncate it?
--
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN