On Tue, 6 May 2025 11:29:33 -0500, Peter Vander Woude wrote:

>We have a file transfer tool, that is used to send data to z/OS, however if 
>the dataset is a gdg, and there is a disp=old on the gdg, the dynamic 
>allocation fails and the transfer job also fails. 
>
"to z/OS"   From what platform where that transfer tool runs?

>We can have them run a script prior to the actual transfer and I want to be 
>able to check if there is an enq against the gdg base.  Now SYSDSN will give 
>me that, however, if there are multiple migrated gds's they all get recalled, 
>which I do not want to do.
>
Will that suffer a TOCTTOU exposure?

JCL allocation is ideal in that it delays until DEQ.
Have you S99WTDSN privilege?  (But beware deadlocks.)
-- 
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to