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

Difference b/w JCL Sort and Cobol Sort


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abhicet2003

New User


Joined: 16 Nov 2005
Posts: 21

PostPosted: Fri May 12, 2006 11:36 am
Reply with quote

Hi All,
Can anyone please tell me the difference b/w JCL Sort and Cobol Sort. Which one is faster and better.

Thanks
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Fri May 12, 2006 12:56 pm
Reply with quote

HI,

Quote:
Can anyone please tell me the difference b/w JCL Sort and Cobol Sort.


JCL SORT :- Sorting the file using ICTOOL , DFSORT and other SORT products

COBOL SORT:- For this you need to write a cobol program to sort the file as you wish

Quote:
Which one is faster and better.


It depends on parameters. But I will prefer to go with JCL sort if its possible to go thru only by SORT command.

Hope its clear now.

Regards
Rupesh
Back to top
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Fri May 12, 2006 3:00 pm
Reply with quote

Sort utilities are generally more efficient, especially if you are sorting large amounts of data, it really depends on your requirements.
Back to top
View user's profile Send private message
ralph_v

New User


Joined: 07 Jul 2005
Posts: 27

PostPosted: Fri May 12, 2006 7:45 pm
Reply with quote

External SORT is always faster because Internal Sort takes the help of external sort for sorting purpose.
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: Fri May 12, 2006 8:56 pm
Reply with quote

A JCL sort invokes DFSORT (or another sort product if you don't use DFSORT) directly.

A COBOL sort uses the COBOL SORT statement to invoke DFSORT.

So both methods use DFSORT. If the COBOL sort uses the FASTSRT option which lets DFSORT read and write the files directly, the two methods will be essentially equivalent. If the COBOL sort does not use the FASTSRT option, then COBOL will read and write the files and pass them to DFSORT via exits, which can be less efficient than having DFSORT read and write the files directly. Also, if the COBOL program has its own code to do things that DFSORT can do with control statements (e.g. INCLUDE, OMIT, etc) instead of using the DFSORT control statements, it may be less efficient.

For more information on this, see Chapter 6 of "z/OS DFSORT Tuning Guide" at:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CT00/6.0?DT=20031124135012
Back to top
View user's profile Send private message
riyas

New User


Joined: 17 Mar 2006
Posts: 1

PostPosted: Sat May 13, 2006 1:06 pm
Reply with quote

I think sorting through JCL may be more efficient than the other one. Because its given through the job itself. It also depends upon you,whether you have to sort through JCL or through COBOL according to your convinience and the situation where you need sorting to be done.
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 -> JCL & VSAM

 


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 Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top