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

SORT in Cobol Code-Is it a performance Issue?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
avik

New User


Joined: 13 May 2008
Posts: 16
Location: kolkata

PostPosted: Sat May 17, 2008 4:01 pm
Reply with quote

Hi,
If I am using sort operation in cobol code itself instead of doing it in JCL.Is it going to affect performance of system?I am already using FASTSRT compiler option.
Actually I am thinking to move those sort operation out of my cobol code.Please help me in this respect.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat May 17, 2008 7:40 pm
Reply with quote

If you're using IP/OP procedures there is a performance impact. If it can be run in it's own step, its preferred.
Back to top
View user's profile Send private message
avik

New User


Joined: 13 May 2008
Posts: 16
Location: kolkata

PostPosted: Sat May 17, 2008 7:51 pm
Reply with quote

Thanks for your reply. I am using i/o procedures.Will my SORT qualify for External sort as I have used FASTSRT? Thanks in advance.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat May 17, 2008 11:38 pm
Reply with quote

FASTSRT is ignored when I/O procs are used.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat May 17, 2008 11:38 pm
Reply with quote

Hello,

How much data are you sorting? Do you have a large input lrecl but only need a few fields from the records to actually meet your processing requirement? One of our main files is a 14k+ lrecl (multiple embedded arrays) and has many million records (i didn't have anything to do with the design - it is over 25 years old). Usually only a couple of hundred bytes are used fro a particular requirement. Also, a very small subset of these records is actually selected for a particular request. Using input-output procedure and an internal sort works quite well.

If you have a billion records to sort, you don't want an internal sort. . . regardless of their size.

Once upon a time (when cpu's&dasd were much slower and much smaller) an even moderate-size internal sort could cause performance problems.

If you describe more about your process, we can probably make better suggestions.
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 -> COBOL Programming

 


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 Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top