Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Option copy or Sort FIELDS=COPY

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Jeyanthi M

New User


Joined: 21 Mar 2008
Posts: 5
Location: India

PostPosted: Wed Apr 02, 2008 11:10 am    Post subject: Option copy or Sort FIELDS=COPY
Reply with quote

Hi,

My requirement is to copy an input file to output file. Which of the following can I use?

Code:

  OPTION COPY
  SORT FIELDS=COPY
  MERGE FIELDS=COPY


Is there any performance variation between Option copy and Sort FIELDS=COPY?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10391
Location: italy

PostPosted: Wed Apr 02, 2008 1:31 pm    Post subject: Reply to: Option copy or Sort fields=copy
Reply with quote

Why not run a simple test ?

check the sort sysout, and You will find the answer icon_cool.gif

for example a first line like
Code:
ICE143I 0 BLOCKSET     COPY  TECHNIQUE SELECTED
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Apr 02, 2008 9:09 pm    Post subject:
Reply with quote

All three are equivalent. There is no difference between OPTION COPY
or SORT FIELDS=COPY or MERGE FIELDS=COPY
Back to top
View user's profile Send private message
venkata.ravi

New User


Joined: 09 May 2005
Posts: 30
Location: Hyderabad

PostPosted: Thu Apr 03, 2008 12:56 pm    Post subject:
Reply with quote

As said by Frank, also the manual clearly mentions all are same

Specifying COPY on the SORT, MERGE, or OPTION Statement

The SORT and MERGE statements change very little when you specify COPY.
Just replace the information you usually put in parentheses with the word COPY:

SORT FIELDS=COPY
MERGE FIELDS=COPY

You can also specify COPY on the OPTION statement:

OPTION COPY
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy Specific Groups V S Amarendra Reddy SYNCSORT 10 Thu Jan 11, 2018 1:16 am
No new posts Sum the fields in particular format f... sharana64 DFSORT/ICETOOL 9 Fri Jan 05, 2018 1:11 am
No new posts SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us