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
 

 

Which SORT is faster

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Which SORT is faster
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 08, 2009 1:10 pm    Post subject:
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    Post subject:
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    Post subject:
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: 7930
Location: Bellevue, IA

PostPosted: Wed Jul 08, 2009 4:45 pm    Post subject:
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 Moderator


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

PostPosted: Wed Jul 08, 2009 9:11 pm    Post subject:
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:

http://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    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 Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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