IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to reduce runtime for following Sort


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tugga11

New User


Joined: 19 May 2009
Posts: 10
Location: Charlotte

PostPosted: Wed Sep 02, 2009 1:59 am
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Sep 02, 2009 2:13 am
Reply with quote

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
View user's profile Send private message
tugga11

New User


Joined: 19 May 2009
Posts: 10
Location: Charlotte

PostPosted: Wed Sep 02, 2009 4:20 am
Reply with quote

I will try to do the sort after file spliI am not using DFsORT.

Thanks for your response.
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Wed Sep 02, 2009 10:38 am
Reply with quote

HI,
I am not very sure but, Could you please try using the SAVE in the second outfil.

Hope this help
Back to top
View user's profile Send private message
viveksurya

New User


Joined: 08 Jun 2009
Posts: 36
Location: Bangalore

PostPosted: Mon Sep 07, 2009 1:31 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 7
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top