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

Can we use 7 input files in single sort step?


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

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Wed Oct 19, 2011 7:48 pm
Reply with quote

Hi,

I have a requirement to sort 7 input files and write output to 7 files.

Thanks,
Vijay
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Oct 19, 2011 7:57 pm
Reply with quote

Will you be concatenating all 7 input datasets to be read as a single file?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Oct 19, 2011 8:07 pm
Reply with quote

Is the output split the same way as the input files are organised?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Oct 19, 2011 8:35 pm
Reply with quote

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

New User


Joined: 18 Aug 2011
Posts: 44
Location: India

PostPosted: Wed Oct 19, 2011 8:58 pm
Reply with quote

Concatenate the 7 input files and use OUTFIL to direct your outputs to 7 outfiles.
Back to top
View user's profile Send private message
xknight

Active User


Joined: 22 Jan 2008
Posts: 117
Location: Liberty city

PostPosted: Wed Oct 19, 2011 9:27 pm
Reply with quote

Quote:
I have a requirement to sort 7 input files and write output to 7 files.


You haven't posted your problem yet icon_rolleyes.gif

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

DFSORT Developer


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

PostPosted: Wed Oct 19, 2011 10:39 pm
Reply with quote

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
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top