|
View previous topic :: View next topic
|
| Author |
Message |
rsnram007
New User
Joined: 28 Jan 2009 Posts: 11 Location: chennai
|
|
|
|
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 |
|
 |
dneufarth
Active User

Joined: 27 Apr 2005 Posts: 421 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
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 |
|
 |
rsnram007
New User
Joined: 28 Jan 2009 Posts: 11 Location: chennai
|
|
|
|
Thanks Dave.
Cann't we solve using JCL ? |
|
| Back to top |
|
 |
dneufarth
Active User

Joined: 27 Apr 2005 Posts: 421 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
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 |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
| 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 |
|
 |
rsnram007
New User
Joined: 28 Jan 2009 Posts: 11 Location: chennai
|
|
|
|
| Thanks Frank Yaeger. |
|
| Back to top |
|
 |
|
|