Hi,

what I do to avoid this is creating 2 JCLs . First JCL create the HSM list,
and the second JCL make whatever you need to do with the list.
Regards


*Gonzalo Cengotita*

2016-02-12 7:19 GMT+01:00 Peter Hunkeler <[email protected]>:

>
>
> > My suggested solution is to change the SORTIT step to use IDCAMS,
> something like:
>  >
> > //COPYIT EXEC PGM=IDCAMS
>
>
>
>
> I'm guessing that in your real job you want SORT to do more than simply
> copy the data. Why would you need the copy the data otherwise....
> Keeping your SORT step you could rename the data set in the first step, so
> that the name HSM and the SORTIN DD are referring to do not match.
>
>
> //SYSTSIN DD *
> HSEND.....
> RENAME 'MAINT.TEMP.LIST' 'MAINT.TEMP.SORTIN'
> and change the DSN on the SORTIN accordingly.
>
>
> --
> Peter Hunkeler
>
> ----------------------------------------------------------------------
> 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

Reply via email to