View previous topic :: View next topic
|
Author |
Message |
maverick05
New User
Joined: 14 Apr 2005 Posts: 54 Location: Earth
|
|
|
|
Hi,
I want to split a file based on some parameters(like size or any other parameter).Is their any JCL or utility for that?Plz let me know
Thanks
Venkat |
|
Back to top |
|
|
ksivapradeep
New User
Joined: 30 Jul 2004 Posts: 95
|
|
|
|
Hi venkat,
using SORT utility itself you can split, using the option OUTFIL FNAMES = dd-name. in the sysin dd *
you can see the pdf files about sort thenyou can get it
if you did't get exactly this i will send the sample code
regards,
pradeep |
|
Back to top |
|
|
maverick05
New User
Joined: 14 Apr 2005 Posts: 54 Location: Earth
|
|
|
|
Hi Siva,
Plz post the sample code.
Thanks
Srinivas |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
If you want to split a record you can use sort to divide it.
If you want to split in "n" files the content of your input using a key for a fixed parameter you must use a program.
Regarding the OUTFIL of Sort that suggest ksivapradeep I think that has a limit, i mean: if you want to split a file using this option you must know in advance how many file you want to create, so when you will have another one you must modify your jcl.
In this case, to suggest you an alternative method you can also use a program that will allow you to break your file in n other without limit.
I hope in this suggest. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Venkat,
There are various ways to split a file with DFSORT as discussed in this "Smart DFSORT Trick":
www.ibm.com/servers/storage/support/software/sort/mvs/tricks/srtmst01.html#t01
Quote: |
I want to split a file based on some parameters(like size or any other parameter) |
This really doesn't tell us what you want to do. If you need more specific help, you need to supply more information such as exactly how you want to split the file. Showing an example of the records in the input file and what you want the output files to look like would be very helpful. |
|
Back to top |
|
|
|