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

How to split base input file into 'N' number of output files


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

New User


Joined: 28 Jan 2009
Posts: 11
Location: chennai

PostPosted: Tue Aug 24, 2010 11:32 am
Reply with quote

Hi There,

I got below requirement

We have an input file. One of the field is date. We have to split the input file depends on the date dynamically.

Can we split the output file dynamically depends upon number of dates in the input file?
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 421
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Tue Aug 24, 2010 12:19 pm
Reply with quote

Write a program? Table entry for each unique date.

Close and reopen file, dynamically allocate files as needed for each table entry as you read through original file.

Or, submit jobs via internal reader as needed rather than dynamic allocation. Using another pgm to snag the specific date records.
Back to top
View user's profile Send private message
rsnram007

New User


Joined: 28 Jan 2009
Posts: 11
Location: chennai

PostPosted: Tue Aug 24, 2010 12:43 pm
Reply with quote

Thanks Dave.

Cann't we solve using JCL ?
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 421
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Tue Aug 24, 2010 12:55 pm
Reply with quote

JCL does nothing but run pgms! Yours, utilities, or some vendor pgm.

And, of course allocate datasets, library search order et al to make the pgm run.
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: Tue Aug 24, 2010 11:06 pm
Reply with quote

Quote:
We have an input file. One of the field is date. We have to split the input file depends on the date dynamically.

Can we split the output file dynamically depends upon number of dates in the input file?


DFSORT has several techniques for splitting files, but it does NOT allocate the output data sets dynamically. You would either have to supply the maximum number of output DD statements or generate them in a job you submit to the internal reader.

For information on some of these techniques, see the following "Smart DFSORT Tricks" at:

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000094

o Split a file to n output files dynamically
o Five ways to split a data set
o Generate JCL to submit to the internal reader
Back to top
View user's profile Send private message
rsnram007

New User


Joined: 28 Jan 2009
Posts: 11
Location: chennai

PostPosted: Wed Aug 25, 2010 9:54 am
Reply with quote

Thanks Frank Yaeger.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Joining files with intermittent heade... SYNCSORT 1
No new posts IGYPG3178-I when compiling a pgm read... COBOL Programming 6
No new posts INPFIL FILES, FNAMES examples SYNCSORT 7
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
Search our Forums:


Back to Top