Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6968
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us