IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Option copy or Sort FIELDS=COPY


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Apr 02, 2008 1:31 pm
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 Developer


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

PostPosted: Wed Apr 02, 2008 9:09 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top