Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Split Tape File

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
hanifam
Warnings : 1

New User


Joined: 04 Aug 2009
Posts: 4
Location: Chennai

PostPosted: Mon Apr 26, 2010 8:43 pm    Post subject: split the files
Reply with quote

please provide the jcl to split the tape file in to four files....
Back to top
View user's profile Send private message

Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 500
Location: USA

PostPosted: Mon Apr 26, 2010 8:55 pm    Post subject:
Reply with quote

What utility do you want to use? If you want to use a SORT product, which one do you have in your shop (SyncSort, DFSort, CA-Sort, etc.)?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Apr 27, 2010 12:22 am    Post subject:
Reply with quote

Hello and welcome to the forum,

It will help someone help you if you define what "split" means to you. This has different meanings for different people/requirements.

As Alissa asked, what utility do you want to use?
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: Tue Apr 27, 2010 1:09 am    Post subject:
Reply with quote

hanifam,

Describing your requirement more clearly would certainly help.

However, maybe one of the techniques described in the "Split a file to n output files dynamically" or "Five ways to split a data set" Smart DFSORT Tricks will give you what you need. You can find these tricks at:

http://www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000094
Back to top
View user's profile Send private message
hanifam
Warnings : 1

New User


Joined: 04 Aug 2009
Posts: 4
Location: Chennai

PostPosted: Tue Apr 27, 2010 3:17 pm    Post subject: Split means Separate
Reply with quote

Hi all,
I need to separate a tape file (which has one million records) into some DASD files.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Apr 27, 2010 3:30 pm    Post subject: Re: Split means Separate
Reply with quote

hanifam wrote:
I need to separate a tape file (which is having one million record) in to some DASD files.

Yes, we know that. So would you please answer the questions that have been asked.

To help, If you are not sure which sort product and release level you have, then by running a simple sort step shown below, you will be able to find out.

If the messages start with ICE then your product is DFSORT. Please also post the output of the complete line which has a message code ICE201I, as this will enable our DFSORT experts to determine which release of DFSORT that you have installed. This may also affect the solution offered.

If the messages start with WER or SYT then the product is SYNCSORT. Please also post the information telling which version of SYNCSORT is installed, as this may also affect the solution offered.

Code:
//SORTSTEP EXEC PGM=SORT
//SYSOUT   DD SYSOUT=*
//SORTIN   DD *
ABC
//SORTOUT  DD SYSOUT=*
//SYSIN    DD *
  SORT     FIELDS=COPY


Frank has given you a link to the DFSORT documentation to do this, have you read it ?

Exactly what are the rules for performing a split, is it based on data content, numbers of records, number of files required. At the moment only you know the rules of how to split the data, and until you explain them to us we can not help you.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Apr 27, 2010 8:51 pm    Post subject:
Reply with quote

Hello,

Quote:
I need to separate a tape file (which has one million records) into some DASD files.
To you, this completely describes your requirement. To us it does not. . .

We have seen multiple ways to "split" files. Whatever you want is only one of them. However; you have not explained just how you want the file/records split. . .

Post a small amount of sample input and describe how you want it split. Mention any relevant fields and the dsorg/lrecl of all files.
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us