Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
When I run your jobs with DFSORT, I get the same result for both cases (one record).
You're using a COPY operator with a SORT statement instead of a SORT operator with a SORT statement. In older versions of DFSORT, this would result in a COPY (SUM FIELDS=NONE has no meaning for a COPY since there's no key). In newer versions, it results in a SORT. So you're either using an older version of DFSORT or another product. Change your ICETOOL statement to:
SORT FROM(INDD) TO(OUTDD) USING(CTR1)
and you will get a SORT rather than a COPY.
By the way, here's another way to do this with DFSORT/ICETOOL: