MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sort in Cobol and Jcl

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Nancy
Beginner


Joined: 23 May 2003
Posts: 77
Topics: 26

PostPosted: Fri May 23, 2003 5:19 am    Post subject: Sort in Cobol and Jcl Reply with quote

This is the first time I am using Sort utility. What is the difference between Cobol Sort and Jcl Sort and Which one is better ? Please explain with examples.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Fri May 23, 2003 5:40 am    Post subject: Reply with quote

Nancy,

I personally do not prefer an cobol internal sort.The biggest disadvantage of using an cobol sort is you need to recompile the program whenever the sort sequence changes.I/O operations are slower.Maintanence is also an issue with programs doing internal sorts.Resources are held while sort phase occurs.Much more difficult to exploit the utility aspects of sort products (INREC, SUM, OUTREC, etc) from within a program.

External sorts on the other hand are easy to understand and maintain.You can use all the utility aspects(INREC ,OUTREC, SUM...).we now have DFSORT's ICETOOL which offers a wide variety of options and utilities that makes the programmer's life easier.You don't have to worry about the LRECL,BLKSIZES.

Sort utilities are highly tuned, EXCP driven, efficient data managing tools.

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Fri May 23, 2003 5:43 am    Post subject: Reply with quote

Nancy,

I don't know the diffrerence but I guess JCL Sort (DFSORT/Syncsort etc) will be faster than a Cobol SORT. Also, if you have to mofify your search condition later on then its easy to do in DFSORT/Syncsort as you don't have to compile-link it.

Dibakar.
Back to top
View user's profile Send private message Send e-mail
Nancy
Beginner


Joined: 23 May 2003
Posts: 77
Topics: 26

PostPosted: Fri May 23, 2003 6:40 am    Post subject: Reply with quote

Thanks kolusu and Dibakar.
Can you please post the examples also of each type of SORT ?
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Fri May 23, 2003 7:23 am    Post subject: Reply with quote

Nancy,

You will get plenty of example of JCL SORT in Utilities forum. I couldn't find any COBOL SORTs but any COBOL book will have examples for it.

Dibakar.
Back to top
View user's profile Send private message Send e-mail
Nancy
Beginner


Joined: 23 May 2003
Posts: 77
Topics: 26

PostPosted: Fri May 23, 2003 8:01 am    Post subject: Reply with quote

Thanks !
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Fri May 23, 2003 11:41 am    Post subject: Reply with quote

Nancy,

For some discussion about using COBOL sorts (with some examples) and JCL sorts with DFSORT, see:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICECT103/6.0?DT=19980721191004

For examples of using DFSORT/ICETOOL, see:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICECA109/10.0?DT=20020722140254

If you're new to using DFSORT, you might want to start with "Getting Started with DFSORT" at:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICECG204/CCONTENTS

You can access all of the DFSORT books online at:

http://www.storage.ibm.com/software/sort/mvs/srtmpub.html

You can access the DFSORT website which has lots of examples, techniques, tricks, etc at:

http://www.ibm.com/storage/dfsort
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group