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

Split Tape File


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 496
Location: USA

PostPosted: Mon Apr 26, 2010 8:55 pm
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

Moderator Emeritus


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

PostPosted: Tue Apr 27, 2010 12:22 am
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 Developer


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

PostPosted: Tue Apr 27, 2010 1:09 am
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:

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
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: 8797
Location: Welsh Wales

PostPosted: Tue Apr 27, 2010 3:30 pm
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

Moderator Emeritus


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

PostPosted: Tue Apr 27, 2010 8:51 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top