Page 1 of 1

Are SORT FIELDS=COPY and OPTION COPY same?

Posted: Mon Nov 12, 2018 12:19 pm
by durga
Hi,

In SORT, are SORT FIELDS=COPY and OPTION COPY same? If yes, why they have created two options?

Re: Are SORT FIELDS=COPY and OPTION COPY same?

Posted: Mon Nov 12, 2018 12:46 pm
by Anuj Dhawan
There is no difference between SORT FIELDS=COPY and OPTION COPY.

Re: Are SORT FIELDS=COPY and OPTION COPY same?

Posted: Mon Nov 12, 2018 12:48 pm
by Mukul Roy
Yes, they are equal. See this also: kb/viewarticle?a=25

Re: Are SORT FIELDS=COPY and OPTION COPY same?

Posted: Mon Nov 12, 2018 3:00 pm
by nicc
No access to that page.

Re: Are SORT FIELDS=COPY and OPTION COPY same?

Posted: Mon Nov 12, 2018 5:45 pm
by Anuj Dhawan
nicc wrote: Mon Nov 12, 2018 3:00 pmNo access to that page.
Please try now.

Re: Are SORT FIELDS=COPY and OPTION COPY same?

Posted: Tue Nov 13, 2018 2:13 pm
by nicc
OK. Works now but... files should be data sets. Under zOS and its predecessors data is kept in data sets hence DSN= (or DSNAME=). And for a straight copy job IEBGENER or ICEGENER should be used. I believe DFSORT will invoke ICEGENER anyway for that sort of copy but why not give a little assist to the system and specify ICEGENER directly?

All off-topic!

Re: Are SORT FIELDS=COPY and OPTION COPY same?

Posted: Wed Nov 14, 2018 7:49 pm
by durga
nicc wrote: Tue Nov 13, 2018 2:13 pmiles should be data sets. Under zOS and its predecessors data is kept in data sets hence DSN= (or DSNAME=). And for a straight copy job IEBGENER or ICEGENER should be used. I believe DFSORT will invoke ICEGENER anyway for that sort of copy but why not give a little assist to the system and specify ICEGENER directly?
Thanks. But what are you referring to?

Re: Are SORT FIELDS=COPY and OPTION COPY same?

Posted: Thu Nov 15, 2018 3:59 am
by nicc
But what are you referring to?
The link that Anuj shared.

Re: Are SORT FIELDS=COPY and OPTION COPY same?

Posted: Thu Nov 15, 2018 12:15 pm
by Mukul Roy
nicc wrote: Tue Nov 13, 2018 2:13 pm And for a straight copy job IEBGENER or ICEGENER should be used
Is there a reason to use IEBGENER?

Re: Are SORT FIELDS=COPY and OPTION COPY same?

Posted: Thu Nov 15, 2018 4:20 pm
by nicc
Is there a reason not to use IEBGENER? ICEGENER has a performance advantage, so I understand, but that would probably only be apparent when dealing with very large amounts of data. But IEBGENER has been the principle copy program for sequential data sets around the world for 50 years.