Join this group to access featured content and participate in discussions related to all Syncsort Mainframe Products.

119 Members
Join Us!

SORTIN and SORTOUT are allocated for the same file

Hi community members.
We use SYNCSORT for Z/OS with z/OS 2.2.0. In some of our legacy jobs SORTIN and SORTOUT are allocated for the same file. Should SYNCSORT always produce a correct result in these cases? Is it documented anywhere?

You need to be a member of Syncsort Community to add comments!

Join Syncsort Community

Email me when people reply –


  • We have referred to that situation as a "suicide sort" for decades and IMHO should be avoided.

  • If the step is doing an actual SORT, e.g. FIELDS=(p,l,x,x,) , then correct results can be expected.  If the step is a FIELDS=COPY, then there is no guarantee.  It is documented some place in the Syncsort manual that for a COPY or MERGE operation, the input and output DDs cannot point to the same physical dataset.

This reply was deleted.

To access Syncsort Knowledge Base, visit:

My Support