On Mon, Feb 11, 2019 at 10:13 AM Paul Gilmartin < 0000000433f07816-dmarc-requ...@listserv.ua.edu> wrote:
> 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 > Excellent questions! I was blinded by an assumption that the address space was a single step started task. -- I just burned 2000 calories! That's the last time I'll nap with brownies in the oven. Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN