The free doesn't do a DEQ if another step needs the dataset.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Paul Gilmartin <0000000433f07816-dmarc-requ...@listserv.ua.edu> Sent: Monday, February 11, 2019 4:13 PM 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 IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN