MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

'Cut' dataset in two ?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
KM
Beginner


Joined: 22 Jul 2004
Posts: 18
Topics: 8

PostPosted: Thu Feb 10, 2005 10:42 am    Post subject: 'Cut' dataset in two ? Reply with quote

I have a dataset that can have various number of lines in it. How can I split it into two new datasets with half in each ?

Example:

MOTHER.DATASET:
1
2
3
4
5
6

Output should look like this:

CHILD.DATASET1:
1
2
3

CHILD.DATASET2:
4
5
6

Have searched the forum(s) and found nothing really. Any thoughts ?
/KM
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Feb 10, 2005 10:45 am    Post subject: Reply with quote

KM,

please search before posting. This question has been discussed earlier.

Customize the solution posted in this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=2371&highlight=split

http://www.mvsforums.com/helpboards/viewtopic.php?t=3453&highlight=split

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
KM
Beginner


Joined: 22 Jul 2004
Posts: 18
Topics: 8

PostPosted: Thu Feb 10, 2005 11:03 am    Post subject: SPLIT....Got it ! Reply with quote

Thanks and sorry for not looking enough !

/KM
Back to top
View user's profile Send private message
Kathi
Beginner


Joined: 14 May 2003
Posts: 25
Topics: 0
Location: Mission Viejo, California

PostPosted: Sat Feb 12, 2005 2:09 am    Post subject: Reply with quote

If the dataset is on a tape, just get a pair of sissors.

A data set on disk would be more difficult. Laughing
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group