COBOL Program performance tuning tips

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

chaat
Member
Posts: 20
Joined: Sun Apr 18, 2010 11:51 pm
Location: St. Cloud, Minnesota, USA

Post by chaat » Mon Apr 20, 2015 7:35 am

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.
Chuck Haatvedt

email --> clastnameatcharterdotnet

(replace lastname, at, dot with appropriate
characters)

dianaazura
Member
Posts: 1
Joined: Mon Jun 29, 2015 1:53 pm
Contact:

Post by dianaazura » Mon Jun 29, 2015 1:57 pm

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.

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Wed Jul 01, 2015 5:38 pm

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.

academyindia4

Topic deleted by Admin

Post by academyindia4 » Mon Jan 25, 2016 10:08 pm

<< Content deleted By Admin >>

academyindia4

Topic deleted by Admin

Post by academyindia4 » Sat Jan 30, 2016 11:38 pm

<< Content deleted By Admin >>

academyindia4

Topic deleted by Admin

Post by academyindia4 » Mon Feb 01, 2016 10:10 pm

<< Content deleted By Admin >>

sridharmohan
Member
Posts: 1
Joined: Mon Jul 16, 2018 3:42 pm
Contact:

Post by sridharmohan » Mon Jul 16, 2018 3:45 pm

Does COBOL has a future scope?
DevOps Training in Chennai|DevOps Course in Chennai

vikriih
Member
Posts: 6
Joined: Sat Oct 24, 2015 2:28 pm

Re: COBOL Program performance tuning tips

Post by vikriih » Wed Sep 18, 2019 6:36 pm

For Sorting you can use SYNCSORT

Post Reply

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



Other References
Mainframe Tools and others