On Tue, 18 Feb 2025 12:41:11 -0600, Charles Mills wrote: >I am surprised that would fail but I don't know SVC 99 well enough to say "no, >that's wrong." > The initiator performs the ENQ before the first job step and keeps it in effect through the last step that references the data set name.
>Seeing as the job is set up with the dataset already "hard coded" in Step 2 -- >why not allocate it with JCL in Step 1? > An obstacle might be a program that creates a separat address space such as BPXBATCH. >If you do that would the SVC 99 then succeed (so you would not have to change >your code)? I don't know. > Shouldn't the dynamic allocation share the same ENQ as the initiator? Does it use RET=HAVE? > > >On Tue, 18 Feb 2025 18:29:37 +0000, Mark Jacobs wrote: > >>I have a two step job. Step 1 attempts to perform a dynamic allocation of a >>dataset. It's failing since step 2 allocates the dataset DISP=SHR, and the >>enqueue is already created before the dynamic allocation is attempted. >> >>Is there anyway around this problem? -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN