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

Multiple input mapping to multiple output using SYNCSORT


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

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Thu Dec 18, 2008 6:23 pm
Reply with quote

I have a set of input files which needs to be sorted and mapped to the corresponding output files.

eg: TEST.file1.in should be sorted in to output file TEST.file1.out
TEST.file2.in should be sorted in to output file TEST.file2.out

respectively.The sort condition is same for all.

Can this be done using one step or should I use different sort steps ?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Thu Dec 18, 2008 6:50 pm
Reply with quote

Nagendran,

It can be done in a single SYNCTOOL step like this.
Code:

//STEP1    EXEC PGM=SYNCTOOL         
//TOOLMSG  DD SYSOUT=*               
//DFSMSG   DD SYSOUT=*               
//IN1      DD DSN= Input file-1     
//IN2      DD DSN= Input file-2     
....                                 
....                                 
//INn      DD DSN= Input file-n
//*     
//OUT1     DD DSN= Output file-1     
//OUT2     DD DSN= Output file-2     
....                                 
....                                 
//OUTn     DD DSN= Output file-n     
//TOOLIN   DD *                     
  SORT FROM(IN1) TO(OUT1) USING(CTL1)
  SORT FROM(IN2) TO(OUT2) USING(CTL1)
....                                 
....                                 
  SORT FROM(INn) TO(OUTn) USING(CTL1)
//CTL1CNTL DD *                     
  SORT FIELDS=(p,l,f,A)
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Dec 19, 2008 4:26 am
Reply with quote

Hi,

personally I don't see the advantage of creating a single step job to achieve the above, in the event of a failure in the second sort, you may lose the time it took to complete the first sort.

If one of the files needs to be recreated, you would have to hack the step, also unnecessary allocation of resources until required.


Gerry
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top