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

Question in DFSORT.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
passion_sujesh

New User


Joined: 14 Mar 2008
Posts: 74
Location: India,Chennai

PostPosted: Mon Jul 30, 2012 10:04 pm
Reply with quote

Hi,
I am trying to fine tuning couple of jobs. Both these jobs sort a same file which consumes lot of CPU. Can you let me know, is it possible to club the two sort step into one sort step (using OUTFIL/FNAMES)

sort step1 in job xxx:

Code:
//step00 exec  pgm=sort
//sortin dd dsn=xxx.xxx.xxx,disp=shr
//sortout dd dsn=xxx.xxx.yyy,disp=shr
//sysin dd *
      sort fields=(15,1,CH,A,5,4,CH,A,11,2,CH,A)
/*
//SYSOUT  DD SYSOUT=*


sort step2 in job YYY:

Code:
//step00 exec  pgm=sort
//sortin dd dsn=xxx.xxx.xxx,disp=shr
//sortout dd dsn=xxx.xxx.zzz,disp=shr
//sysin DD *
      sort fields=(20,5,CH,A)
/*
//SYSOUT  DD SYSOUT=*

required sort step:

Code:
//step00 exec  pgm=sort
//sortin dd dsn=xxx.xxx.xxx,disp=shr
//dd1 dd dsn=xxx.xxx.yyy,disp=old
//dd2 dd dsn=xxx.xxx.zzz,disp=old
//sysin DD *
      ???????????
/*
//SYSOUT  DD SYSOUT=*

Can you please let me know is it possible to merge both the sort step into one?

Thanks in advance....
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Mon Jul 30, 2012 10:13 pm
Reply with quote

passion_sujesh

The 2 steps are sorting on different fields and they canNOT be combined. If you want fine tune jobs, you need to run the both steps specifying //SORTDIAG DD DUMMY on both steps and show us the COMPLETE Sysout.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts DFsort help with SUM() DFSORT/ICETOOL 12
No new posts Question for file manager IBM Tools 7
Search our Forums:

Back to Top