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: 10210
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 0 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


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