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

Which SORT is faster


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

New User


Joined: 17 Oct 2008
Posts: 10
Location: Pune

PostPosted: Wed Jul 08, 2009 1:07 pm
Reply with quote

Is sorting done through JCL is faster as comapred to sorting done with cobol program using input procedures.

While doing sorting through Cobol for a file that contains around 1 million records takes about 1-2 minutes,would sorting the same through JCL will reduce the turn aroung time?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 08, 2009 1:10 pm
Reply with quote

Why don't you try it out yourself and see what happens.

How can we say yes/no with zero knowledge of the workload processed on a CPU that we have no access to.
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Wed Jul 08, 2009 3:11 pm
Reply with quote

hi zavedali,

i guess the JCL would be a better option.. atleast this is the input i got from my previous client in which they told they preferred JCL sort to COBOL sort as JCL sort is more efficient than COBOL.

But as expat suggested for the data u have... its better u itself try it out.. icon_wink.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jul 08, 2009 3:43 pm
Reply with quote

here is a discussion by someone about this topic
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Jul 08, 2009 4:45 pm
Reply with quote

Considering COBOL invokes the system sort anyway, unless you are doing some really complicated things in your INPUT PROCEDURE section, the COBOL SORT verb should not use any more -- or less -- time than doing the same sort in JCL.
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 Jul 08, 2009 9:11 pm
Reply with quote

If the COBOL program has FASTSRT in effect for the input and output data sets, then DFSORT reads and writes the data sets directly and there should be no difference. If the COBOL program does not have FASTSRT in effect, then the COBOL program reads and writes the data sets rather than DFSORT, whereas with a direct invocation of DFSORT, DFSORT reads and writes the data sets. This can make a difference since DFSORT's I/O and buffering is more efficient than COBOL's. Of course, that only matters if a direct invocation of DFSORT can be used to do the same thing the COBOL program does.

For some more information, see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CT10/6.0?DT=20080528173317
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 JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top