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: 6966
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
No new posts outrec field outside range Danielle.Filteau SYNCSORT 10 Sat Mar 04, 2017 2:37 am
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm


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