On Mon, 11 Feb 2019 06:43:14 -0600, John McKown wrote:
>
>One thing that I sometimes do is include a FREE=CLOSE on a DD if I am
>certain that the application will only read if once, say at start up, for
>configuration information.
> 
How does that work if a subsequent job step contains a DD statement for
the same DSN?

I would guess that the control blocks for the job step (TIOT? JFCB?) are
cleaned up but the initiator continues to hold the ENQ.

Or just a JCL error?

And something similar should apply to a BPXWDYN('free') of a DSN allocated
by JCL.

And if a program redundantly ALLOCATEs then FREEs a DSN allocated in
JCL?  Does GRS maintain a reference count of the ENQ QHAME/RNAME?

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to