Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 10276
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 SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us