Page 1 of 1

program works slowly

PostPosted: Thu Feb 05, 2009 3:23 pm
by leonid
Hi
I want to find place in my program (COBOL MAINFRAME) which takes long running time
How can I handle this situation?

Re: program works slowly

PostPosted: Thu Feb 05, 2009 7:54 pm
by Bill Dennis
Long run times can be factors outside your program, such as system too busy or tape mount times. Be sure these are not the problem.

Now make sure you use large BLKSIZEs on input and output files to ensure reads/writes are most efficient.

You can trace the logic path to be sure you dont OPEN and CLOSE file repeatedly, etc.

Finally, you could put WRITE statements in at strategic points (with timestamps) to track the flow.

Re: program works slowly

PostPosted: Thu Feb 19, 2009 6:01 pm
by swd
Do you have a peformance monitor such as STROBE or IBM's APA ? This will pin-point exactly where the problem is. Does your program access a database - perhaps it is tablespace scanning? There could be hundreds of reasons for poor performance, so you need to eliminate possible causes.

If you don't have STROBE or APA then use DISPLAY statements with timestamps (as mentioned above)