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
 

 

Difference b/w JCL Sort and Cobol Sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Difference b/w JCL Sort and Cobol Sort
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: 464

PostPosted: Fri May 12, 2006 12:56 pm    Post subject: Re: SORT
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    Post subject: Re: SORT
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    Post subject:
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 Moderator


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

PostPosted: Fri May 12, 2006 8:56 pm    Post subject:
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:

http://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    Post subject: Re: SORT
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm


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