Joined: 10 Oct 2005 Posts: 2 Topics: 1 Location: Chennai
Posted: Mon Oct 10, 2005 6:48 am Post subject: Reducing Run Time in Sort
Hi
I have the following steps in my PROC :
STEP 1 :
TASK A: Splitting an Input file of 10 million records into 3 files.
TASK B: Sort another two input files based on a condition.
STEP 2: PROGRAM STEP
STEP 3: Merging all the files from Step 1.
There is no problem with STEP 2. STEP 1 and STEP 3 were taking so much time (15 mins each) to complete as it needs a definite time optimisation. Is there any way by which the time could be reduced? Your help is greatly appreciated. _________________ Vilashini
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Mon Oct 10, 2005 7:06 am Post subject:
Vilashini,
We need to first look at the JCL used so that we can give some suggestion. Post your complete JCL. If your SORT card is stored in a PDS member or PS, then please post that too.
PS: When you paste any code, please use BB Tags {code} & {/code} as shown below.
{code}
line 1
line 2
line 3
line 4
....
{/code}
Remember, You need to change '{' by '[' and '}' by ']' in the above lines.
vilashini,
10 million + records and the amount of sort work in a single step 15 minutes is not surprising - is it the elapsed time that's of concern or the CPU?. Try increasing the VSCORET to 128M (ask around for limits). Look for //$ORTPARM card on other sort Jobs, This helps but not a lot. Thanks
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Mon Oct 10, 2005 9:31 am Post subject:
Vilashini,
Kolusu's method should save you considerable time since you are eliminating 1 full pass. As Kolusu mentioned use the PARASORT in DFSPARM as shown below.
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Mon Oct 10, 2005 5:11 pm Post subject:
vilashini,
You don't have to code DCB parameters for SOrt. Sort will automatically calculate the DCB parameters from the input or inrec/outrec statements. Also change your output file allocation to cylinders instead of blocks.
Also I see that you are compressing and stripping the output datasets (dataclas and storclas parameters). Remember that with compression and stripping your Cpu time will be high.
Code your control cards in orderly fashion with comments so that it is easy to maintain. Ex: look at the control cards in CTL1.
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
Posted: Tue Oct 11, 2005 1:16 am Post subject:
Kolusu,
Quote:
Also I see that you are compressing and stripping the output datasets (dataclas and storclas parameters). Remember that with compression and stripping your Cpu time will be high.
I agree with you. But Thatz pretty unfortunate. I know those files (my previous shop). They are very huge and without compression, it ends in space problem (either lack of space / lack of volumes to allocate huge space).
I believe that with the correction of PARM (PARASORT), Vilashini should see some significant difference in the run time.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum