The enqueue happens at job start. So DFHSM can't get DISP=NEW to create it (or OLD to rewrite it
> -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] > On Behalf Of Vince Getgood > Sent: Friday, February 12, 2016 12:37 AM > To: [email protected] > Subject: Re: Odd behaviour with DFHSM & DFSORT in batch. > > Thanks all for your responses. > > Allan, > I DELETED ‘MAINT.TEMP.LIST’ before running the second job – can’t get > more freed than that… > > I tried pre-allocating it – Still get the ARC0141I message. > > Kolusu, > I’m sorry, you are wrong. OUTDATASET is created by DFHSM at the time of > issuing the LIST command. The job DOES have two steps. > > John, > Best explanation yet! But, and here I’m showing a little ignorance, I’m > running JES2. I didn’t think JES2 did any enqueues until the step started? > > As per my original post, I need to run a SORT on the "real" > ‘MAINT.TEMP.LIST’, so the IDCAMS doesn’t help me. The SORT step I coded > was just for demonstration purposes. > > Ed, > That’s more or less what John said. I thought the WAIT parameter would > resolve that issue though. > > On more investigation, there is nothing in the joblog for the HSMLIST step > regarding the final disposition of 'MAINT.TEMP.LIST', regardless of if I run > it > on it's own, or as part of the two step job coded in my OP. > > This lends credence to what Ed and John are saying. Even though I've coded > WAIT on the DFHSM LIST command, the HSMLIST step is finishing and the > SORTIT step starts before 'MAINT.TEMP.LIST' is allocated, hence the > ARC0141I message and the JCL error. > > Looks like I may have to do two jobs, or put some sort of "filler" step > between the HSMLIST & SORTIT steps. > Vince. > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, send email to > [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
