Is there a reason you could not do the HSEND in the REXX with WAIT and then use 
that file later in the REXX once it was available?

I have not tried that yet, but it seems that could work.  The other option is 
to use HLIST rather than HSEND.

REXX can call SORT and HLIST or HSEND.

Just some thoughts.

Lizette


> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[email protected]] On
> Behalf Of Vince Getgood
> Sent: Friday, February 12, 2016 2:16 AM
> To: [email protected]
> Subject: Re: Odd behaviour with DFHSM & DFSORT in batch.
> 
> David,
> Perfect.  Thanks.  That explains everything.
> 
> In fact to confirm this, I replaced the DFSORT step with an IEFBR14 step, just
> allocating MAINT.TEMP.LIST DISP=SHR - I get the ARC0141I message, and the job
> fails JCL error.
> 
> So either I have to do the SORT in my REXX, or I have to run two jobs.
> 
> Thanks everyone.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to