Where does the term 'reference count' come from? If the initiator deallocates a 
dataset, either because of step-end or because of FREE with CLOSE, it dequeues 
the dataset if no subsequent step needs the dataset anymore.

Kees.


> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Paul Gilmartin
> Sent: 11 February, 2019 22:14
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: DEQ dynamically
> 
> On Mon, 11 Feb 2019 20:15:29 +0000, Seymour J Metz wrote:
> 
> >Only if the job doesn't have a subsequent step with a DD for the same
> dataset.
> >
> Why?  I never did a DYNALLOC ALLOCATE; only a FREE, and that should set
> the reference count to 0.
> 
> Or does the reference count count each step mentioning the DSN?
> 
> (This is much messier nowadays that it's possible to downgrade an ENQ.)
> 
> >________________________________________
> >From: IBM Paul Gilmartin
> >Sent: Monday, February 11, 2019 2:54 PM
> >
> >On Mon, 11 Feb 2019 16:40:49 +0000, Seymour J Metz wrote:
> >>
> >>BPXWDYN is just a fron end; ultimately it goes to the same DYNALLOC
> (SVC 99) as any other allocation.
> >>
> >>GRS maintains a global reference count for any resource, not just
> SYSDSN.
> >>
> >Does that imply that if I have a DSN allocated by a JCL DD statement
> and I do a
> >DYNALLOC FREE, the count becomes 0 and the DSN is immediately available
> to
> >other jobs?
> 
> -- gil
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
********************************************************
For information, services and offers, please visit our web site: 
http://www.klm.com. This e-mail and any attachment may contain confidential and 
privileged material intended for the addressee only. If you are not the 
addressee, you are notified that no part of the e-mail or any attachment may be 
disclosed, copied or distributed, and that any other action related to this 
e-mail or attachment is strictly prohibited, and may be unlawful. If you have 
received this e-mail by error, please notify the sender immediately by return 
e-mail, and delete this message.

Koninklijke Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its 
employees shall not be liable for the incorrect or incomplete transmission of 
this e-mail or any attachments, nor responsible for any delay in receipt.
Koninklijke Luchtvaart Maatschappij N.V. (also known as KLM Royal Dutch 
Airlines) is registered in Amstelveen, The Netherlands, with registered number 
33014286
********************************************************


----------------------------------------------------------------------
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