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 gives best performance, OUTREC or COBOL?.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
kalaikala

New User


Joined: 21 Jul 2007
Posts: 27
Location: Chennai

PostPosted: Fri Aug 22, 2008 3:43 pm    Post subject: Which gives best performance, OUTREC or COBOL?.
Reply with quote

Can anyone tell me which would be best in performance?.

My requirement is, I have an input file with 800 byte record length. This file contains more than 10 million records.

I want to sort(STEP1) this file by first 5 bytes(1-5) and I am going to use only first 13 bytes (1- 13) in COBOL program(STEP2).

Two ways:

1 . Using OUTREC to get 13 bytes in my sorted file and using only 13 bytes in STEP2(COBOL program).

2. Just sorting file without OUTREC and reading 800 bytes in COBOL program.

Which would improve the performance?.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Fri Aug 22, 2008 7:00 pm    Post subject: Reply to: Which gives best performance, OUTREC or COBOL?.
Reply with quote

Would you not want to reduce the data size (truncate the record)
between the first READ and the first WRITE?

The first WRITE being the release of the record to SORT.

I would utilize INREC instead of OUTREC to truncate the record.
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: Fri Aug 22, 2008 9:52 pm    Post subject:
Reply with quote

I'd vote for the third way as follows:

3. Use INREC to get 13 bytes in my sorted file and using only 13 bytes in STEP2(COBOL program).

Note that INREC will shorten the records before they are sorted, whereas OUTREC will shorten the records after they are sorted. The less bytes you sort, the better, so INREC is a better choice here than OUTREC.

Of course, the only way to know for sure which method performs betst in your specific situation would be to try all three methods and compare the "performance" indicators you're interested in.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


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