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
 
JCL for split required

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: JCL for split required
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    Post subject: Re: JCL for split required
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    Post subject: Re: JCL for split required
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    Post subject:
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 Moderator


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

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

Venkat,

There are various ways to split a file with DFSORT as discussed in this "Smart DFSORT Trick":

http://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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm

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