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
 

 

Dynamic split of files under groups

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
sril.krishy

Active User


Joined: 30 Jul 2005
Posts: 183
Location: hyderabad

PostPosted: Mon Apr 17, 2017 1:09 pm    Post subject: Dynamic split of files under groups
Reply with quote

Hi,

Need some help on splitting a huge data set dynamically without losing the groups .

Have a very big data set with the data look like
12abc
12cde
12kgh
23abc
23qwe
23ert
23dfe
.
.
.

Need to split this data set into multiple data sets dynamically without losing the group into 2 different data sets.

First data set should have
12 data
second data set should have
23data

Thanks

Edited to use better terminology - data set instead of file and correct spelling of losing (not loosing which is not a word)

Loosing is a word. File, schmile.
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1696
Location: NY,USA

PostPosted: Mon Apr 17, 2017 6:17 pm    Post subject:
Reply with quote

12 years here and you still haven't used code tags while representing the data? What is that in the requirement is very difficult that you don't understand? Or did you try anything as yet by yourself? And why do you need to break it to multiple?
If you need to create multiple data sets dynamically then did you think of writing a sort card through COBOL program?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2276
Location: @my desk

PostPosted: Mon Apr 17, 2017 8:16 pm    Post subject:
Reply with quote

sril.krishy,

Will you always have two output data sets? Or do you expect a dynamic number of groups as well?
Are these values fixed - '12' and '23'? Or can these keep changing?

Rohit Umarjikar wrote:
If you need to create multiple data sets dynamically then did you think of writing a sort card through COBOL program?
If we are to write a COBOL (or any other) program, then why write a sort card, why not do the split itself there dynamically?
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1696
Location: NY,USA

PostPosted: Mon Apr 17, 2017 9:18 pm    Post subject:
Reply with quote

Quote:
If we are to write a COBOL (or any other) program, then why write a sort card, why not do the split itself there dynamically?
as at that point you don't know how many data sets to assign in the output, or do we?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2276
Location: @my desk

PostPosted: Tue Apr 18, 2017 4:47 am    Post subject:
Reply with quote

Quote:
as at that point you don't know how many data sets to assign in the output, or do we?
We don't know that before hand, the program (whichever language used) should do it dynamically.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am


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