View previous topic :: View next topic
|
Author |
Message |
zavedali85
New User
Joined: 17 Oct 2008 Posts: 10 Location: Pune
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
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.. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
here is a discussion by someone about this topic |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
|