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

How to select one of the input file.


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

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Wed Feb 15, 2006 11:12 pm
Reply with quote

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

DFSORT Developer


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

PostPosted: Wed Feb 15, 2006 11:23 pm
Reply with quote

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

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Thu Feb 16, 2006 3:16 pm
Reply with quote

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

DFSORT Developer


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

PostPosted: Thu Feb 16, 2006 9:19 pm
Reply with quote

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
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top