View previous topic :: View next topic
|
Author |
Message |
cvijay784 Warnings : 1 New User
Joined: 18 Jun 2008 Posts: 54 Location: Colombo
|
|
|
|
Hi,
I have a requirement to sort 7 input files and write output to 7 files.
Thanks,
Vijay |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Will you be concatenating all 7 input datasets to be read as a single file? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Is the output split the same way as the input files are organised? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I have a requirement to sort 7 input files and write output to 7 files. |
Thren create a job with 7 sort steps. . . As it appears that each is a separate process, there is no good reason to force them into one step. . . |
|
Back to top |
|
|
elango_K
New User
Joined: 18 Aug 2011 Posts: 44 Location: India
|
|
|
|
Concatenate the 7 input files and use OUTFIL to direct your outputs to 7 outfiles. |
|
Back to top |
|
|
xknight
Active User
Joined: 22 Jan 2008 Posts: 117 Location: Liberty city
|
|
|
|
Quote: |
I have a requirement to sort 7 input files and write output to 7 files. |
You haven't posted your problem yet
Are you looking for this,
Code: |
//STEP01 EXEC PGM=ICETOOL
//DFSMSG DD SYSOUT=*
//TOOLMSG DD SYSOUT=*
//IN1 DD DSN= I/P FILE1
....
//IN7 DD DSN= I/P FILE7
//OUT1 DD DSN= O/P FILE1
....
//OUT2 DD DSN=O/P FILE2
//TOOLIN DD *
SORT FROM(IN1) TO(OUT1) USING(CTL1)
....
SORT FROM(IN7) TO(OUT7) USING(CTL7)
/*
//CTL1CNTL DD *
SORT FIELDS=(p,m,f,s)
/*
....
//CTL7CNTL DD *
SORT FIELDS=(p,m,f,s)
/*
//* END OF JOB |
|
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Quote: |
I have a requirement to sort 7 input files and write output to 7 files. |
How you would do this depends on exactly what you want to do, which isn't clear.
Do you want to sort the records of all 7 files on the same fields and then split up the sorted output records by some criteria (e.g. n in position 21).
Or do you want to sort and output each file separately?
Or what?
You need to explain exactly what you want to do if you need more specific help. Show an example of the records in each input file and what you expect for output. Give the RECFM and LRECL of each input and output file. Give the starting position, length and format of all relevant fields. |
|
Back to top |
|
|
|