View previous topic :: View next topic
|
Author |
Message |
tugga11
New User
Joined: 19 May 2009 Posts: 10 Location: Charlotte
|
|
|
|
HI
I have a SORT pgm which runs for cloase to 4 hours. This sort splits the file into 2 based on Year (> 2006 and < 2006) . The record length for i/p and o/p are 1500.
Total number of records processed is around 2.4 million
SORT FIELDS=(26,21,CH,A)
OUTFIL FILES=OUT
OUTFIL FILES=1,INCLUDE=(154,4,CH,GE,C'2006')
OUTFIL FILES=2,INCLUDE=(154,4,CH,LT,C'2006')
The sort on the first line is required before spliting the file . I wonder if this statement is causing the step to run longer.
PLease advise.
Thanks
Ashok |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Do you need the complete sorted file in SORTOUT? If not, why do you have OUTFIL FILES=OUT? This requires extra writes. If you don't need the complete sorted file in SORTOUT, remove the OUTFIL FILES=OUT statement.
Quote: |
The sort on the first line is required before spliting the file . I wonder if this statement is causing the step to run longer. |
If you are asking whether doing a SORT without the OUTFILs and then a COPY with the OUTFILs would be faster than doing a SORT with the OUTFILs, the only way to know is to try it both ways and compare.
If you are using DFSORT (ICE messages) and you want more help on this, add the following to the job:
//SORTDIAG DD DUMMY
then rerun it and send the complete JES messages to David Betten (betten@us.ibm.com) and ask him if there's anything he sees that could be tuned (Dave is the DFSORT Performance Team Leader). |
|
Back to top |
|
|
tugga11
New User
Joined: 19 May 2009 Posts: 10 Location: Charlotte
|
|
|
|
I will try to do the sort after file spliI am not using DFsORT.
Thanks for your response. |
|
Back to top |
|
|
Ketan Varhade
Active User
Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
HI,
I am not very sure but, Could you please try using the SAVE in the second outfil.
Hope this help |
|
Back to top |
|
|
viveksurya
New User
Joined: 08 Jun 2009 Posts: 36 Location: Bangalore
|
|
|
|
Hi Ashok,
Irrespective of what u r using DFSORT or SYNCSORT, removing OUTFIL FILES=OUT will enhance your job performance as mentioned by Frank. Not sure whether you require the entire input file to be sorted and written in SORTOUT. If not..better remove that statement. The way I see, it is contributing much in the job run-time. |
|
Back to top |
|
|
|