Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 7315

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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us