Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Can we use 7 input files in single sort step?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Can we use 7 input files in single sort step?
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

Moderator Team Head


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

PostPosted: Wed Oct 19, 2011 7:57 pm    Post subject: Reply to: Can we use 7 input files in single sort step?
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7306

PostPosted: Wed Oct 19, 2011 8:07 pm    Post subject: Reply to: Can we use 7 input files in single sort step?
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

Site Director


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

PostPosted: Wed Oct 19, 2011 8:35 pm    Post subject:
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    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Wed Oct 19, 2011 10:39 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us