COBOL Program performance tuning tips
Moderators: dbzTHEdinosauer, Moderator Group
I've had good results converting programs to be sort exit programs.
for example pgm 1 writes an output file A which is then sorted and the output is input to pgm 1
after converting pgm 1 to an E15 sort exit and pgm 2 to an E35 sort exit
three steps are replaced by a single sort step.
caveat... these programs are not incrementally restartable. the sort step must be run over again.
for large intermediate files the use of sort exit programs can dramatically reduce run time by eliminating I/O.
for example pgm 1 writes an output file A which is then sorted and the output is input to pgm 1
after converting pgm 1 to an E15 sort exit and pgm 2 to an E35 sort exit
three steps are replaced by a single sort step.
caveat... these programs are not incrementally restartable. the sort step must be run over again.
for large intermediate files the use of sort exit programs can dramatically reduce run time by eliminating I/O.
Chuck Haatvedt
email --> clastnameatcharterdotnet
(replace lastname, at, dot with appropriate
characters)
email --> clastnameatcharterdotnet
(replace lastname, at, dot with appropriate
characters)
-
- Member
- Posts: 1
- Joined: Mon Jun 29, 2015 1:53 pm
- Contact:
if you are using INPUT/OUTPUT procedure then FASTSRT compiler option will not increase the performance.In such cases it is better to use the DFSORT control statements like INREC,OUTREC,SUM,SKIPREC,INCLUDE or OMIT ,STOPAFT etc and put them under the ddname SORTCNTL or IGZSRTCD. I had a situation where we loaded a large VSAM file into memory to be searched by online CICS application. We encountered problems trying to emulate the VSAM START verb using COBOL SEARCH ALL verb when the key does not exist in the array. To get around this we had to write our own BINARY SEARCH in COBOL.
-
- Active Member
- Posts: 732
- Joined: Thu May 24, 2012 4:07 am
If you have a look around here, you'll see chaat has also done the same with a hand-coded binary-search.
The COBOL compiler tells you if FASTSRT will impact your use of the COBOL SORT verb or not.
DFSPARM is a candidate for the additional control-cards for a FASTSRT data-manipulation, allowing the parms which are not available on the OPTION control statement.
The COBOL compiler tells you if FASTSRT will impact your use of the COBOL SORT verb or not.
DFSPARM is a candidate for the additional control-cards for a FASTSRT data-manipulation, allowing the parms which are not available on the OPTION control statement.
-
- Member
- Posts: 1
- Joined: Mon Jul 16, 2018 3:42 pm
- Contact:
Re: COBOL Program performance tuning tips
For Sorting you can use SYNCSORT
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page