My job has one input file and an output file. It was coded sometime ago and it is running too long. Can someone please clarify me, if it can be tuned further to reduce the cpu time and run time? The details are as below. These records are sorted and stored in DB (Outline of requirement).
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
Remember that CPU time and elapsed/wall time have but a tenuous relationship to each other. You'll have to have your performance workgroup look at the overall picture.
EQUALS is not really required. The process is they are files unloaded from a table and these will be input to a program which will do some process and produces final records which should be loaded into another table.
Sqlcode1,
Since the records that are coming in are dynamic, they have kept the DYNALLOC parm as max. Will there be improvement if we reduce the parm?
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
OK, so try with NOEQUALS on the OPTION or on the SORT, which should reduce CPU usage.
If EQUALS is your site default, there may well be other Sort steps which would benefit - any Sort which does not need to preserve the input order when keys are equal can benefit from NOEQUALS as far as CPU usage is concerned.
Your input and output are tapes? Ensure that those are handled effectively, else elapsed time will be increased for any "mount" waits. If DASD, you are loosing a lot through not having optimum blocksizes, but I'm assuming it is tape.
Thank you Bill. I will try with No EQUALS option. The files are on DASD. In JCL, we are keeping BLKSIZE as 0 in DCB parameters, so that SMS will choose the optimum block size before the file is being allocated.
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
V S Amarendra Reddy wrote:
This is total SYSOUT. The input/output are sequential files.
V S Amarendra Reddy,
If you need help, Please add //SORTDIAG DD DUMMY to your JCL and re-run the job and send us the complete sysout to DFSORT hot line: dfsort@us.ibm.com and our performance expert will look into it.