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
 

 

SORT in Cobol Code-Is it a performance Issue?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: SORT in Cobol Code-Is it a performance Issue?
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    Post subject:
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    Post subject: Reply to: SORT in Cobol Code-Is it a performance Issue?
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    Post subject:
Reply with quote

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

Site Director


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

PostPosted: Sat May 17, 2008 11:38 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm


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