View previous topic :: View next topic
|
Author |
Message |
Jeyanthi M
New User
Joined: 21 Mar 2008 Posts: 5 Location: India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Why not run a simple test ?
check the sort sysout, and You will find the answer
for example a first line like
Code: |
ICE143I 0 BLOCKSET COPY TECHNIQUE SELECTED
|
|
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
All three are equivalent. There is no difference between OPTION COPY
or SORT FIELDS=COPY or MERGE FIELDS=COPY |
|
Back to top |
|
|
venkata.ravi
New User
Joined: 09 May 2005 Posts: 30 Location: Hyderabad
|
|
|
|
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 |
|
|
|