Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to reduce runtime for following Sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
tugga11

New User


Joined: 19 May 2009
Posts: 12
Location: Charlotte

PostPosted: Wed Sep 02, 2009 1:59 am    Post subject: How to reduce runtime for following Sort
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 Moderator


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

PostPosted: Wed Sep 02, 2009 2:13 am    Post subject:
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: 12
Location: Charlotte

PostPosted: Wed Sep 02, 2009 4:20 am    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us