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

JCL for split required


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
maverick05

New User


Joined: 14 Apr 2005
Posts: 54
Location: Earth

PostPosted: Fri Sep 16, 2005 3:47 pm
Reply with quote

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
View user's profile Send private message
ksivapradeep

New User


Joined: 30 Jul 2004
Posts: 95

PostPosted: Fri Sep 16, 2005 4:04 pm
Reply with quote

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
View user's profile Send private message
maverick05

New User


Joined: 14 Apr 2005
Posts: 54
Location: Earth

PostPosted: Fri Sep 16, 2005 4:08 pm
Reply with quote

Hi Siva,

Plz post the sample code.

Thanks
Srinivas
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Fri Sep 16, 2005 5:51 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Fri Sep 23, 2005 3:25 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL/SORT to Split Records SYNCSORT 28
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
No new posts Split large FB file based on Key coun... DFSORT/ICETOOL 4
No new posts Split a record with data in a differe... DFSORT/ICETOOL 8
Search our Forums:

Back to Top