View previous topic :: View next topic
|
Author |
Message |
rajandhla
Active User
Joined: 18 Oct 2005 Posts: 182 Location: Luton UK
|
|
|
|
Hi Guys,
Using OUTFIL stmt we can divert the output records in to one/many output files by selecting the corresponding DD name.
I would like to know is the any way to select one of many input files
for each control card/sort stmt
for example 5 input files and 5 output files by selecting one of each input files and by applying sort i need to write in to one of output file.
Thanks In advance.
Regards
Jai |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
You can use DFSORT's ICETOOL to do multiple input and multiple output. For example:
Code: |
//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD DSN=... input file1
//IN2 DD DSN=... input file2
//IN3 DD DSN=... input file3
//OUT1 DD DSN=... output file1
//OUT2 DD DSN=... output file2
//OUT3 DD DSN=... output file3
//TOOLIN DD *
SORT FROM(IN1) TO(OUT1) USING(CTL1)
SORT FROM(IN2) TO(OUT2) USING(CTL2)
SORT FROM(IN3) TO(OUT3) USING(CTL3)
/*
//CTL1CNTL DD *
SORT FIELDS=(11,5,CH,A)
/*
//CTL2CNTL DD *
SORT FIELDS=(21,2,ZD,D)
/*
//CTL3CNTL DD *
SORT FIELDS=(8,3,BI,A,2,2,ZD,D)
/*
|
If that's not what you want, then you need to describe more clearly what it is you do want. |
|
Back to top |
|
|
rajandhla
Active User
Joined: 18 Oct 2005 Posts: 182 Location: Luton UK
|
|
|
|
Hi,
Is the keywords can be used with SYNCSORT are they different to select one of the many input files. if they are different please let me know.
Thanks In Advance,
Regards
Jai |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
I'm a DFSORT developer. DFSORT and Syncsort are competitive products. I'm happy to answer questions on DFSORT and DFSORT's ICETOOL, but I don't answer questions on Syncsort. |
|
Back to top |
|
|
|