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

Syncsort Splitting file on certain basis


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
narasimha.g

New User


Joined: 10 Sep 2009
Posts: 68
Location: Liverpool

PostPosted: Fri Sep 02, 2011 8:57 pm
Reply with quote

Hi All,

I have a IMS database unload with over 2 million records... i now have a requirement to split the file into 3 files with around 700000 records in each file....

I can do this using the STOPAFT parameter....But there is a catch in this... I do not want the parent and child segment to get separated and go into different files....

Example....

INPUT FILE

SSP42MPR - is the parent record and SSP42SPR is the child record.

All the SSP42SPR associated records below a SSP42MPR record until the next SSP42MPR record are the child Segments.....

The number of child segments are not fixed and can be variable

Code:
SSP42MPR...123456789QWERTY
SSP42SPR...898
SSP42SPR...899
SSP42SPR...891
SSP42SPR...892
SSP42MPR...123456789PORTYI
SSP42SPR...898
SSP42SPR...899
SSP42SPR...891
SSP42MPR...123456789PORTYI
SSP42SPR...898
SSP42SPR...899
SSP42SPR...891
SSP42SPR...892
SSP42SPR...898
SSP42SPR...899
SSP42SPR...891
SSP42SPR...892


Now what i want in o/p when i split is

Output 1
Code:
SSP42MPR...123456789QWERTY
SSP42SPR...898
SSP42SPR...899
SSP42SPR...891
SSP42SPR...892
SSP42MPR...123456789PORTYI
SSP42SPR...898
SSP42SPR...899
SSP42SPR...891


Output 2

Code:
SSP42MPR...123456789PORTYI
SSP42SPR...898
SSP42SPR...899
SSP42SPR...891
SSP42SPR...892
SSP42SPR...898
SSP42SPR...899
SSP42SPR...891
SSP42SPR...892


and not

Output 1

Code:
SSP42MPR...123456789QWERTY
SSP42SPR...898
SSP42SPR...899
SSP42SPR...891
SSP42SPR...892
SSP42MPR...123456789PORTYI
SSP42SPR...898
SSP42SPR...899
SSP42SPR...891
SSP42MPR...123456789PORTYI
SSP42SPR...898
SSP42SPR...899


Output 2

Code:
SSP42SPR...891
SSP42SPR...892
SSP42SPR...898
SSP42SPR...899
SSP42SPR...891
SSP42SPR...892


I want the split record count to be somewhere around 700000 not very specific abt the count.....

Could you please help me in doing this....
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Sep 02, 2011 9:06 pm
Reply with quote

If you have your whole file, browse it. Go to about 700000th record. Visually identify next logical position to break file. Go down another 700000. Repeat. Hope that you remembered, or wrote down, the exact numbers.

Then you have some start/stop numbers for whatever method you choose to simply split the file.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri Sep 02, 2011 9:06 pm
Reply with quote

Can you please confirm if you have DFSORT or SYNCSORT?

Also what is LRECL and RECFM of the file?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Sep 02, 2011 9:13 pm
Reply with quote

given the frequency of Your posts ...
isn ' t it time for Your organization to use the servics of a paid consultant
instead of relying on free consultancy from public forum ?

looks like You and You company do not have a bit of ethics !
or maybe that' s Your way of doing business ???
Back to top
View user's profile Send private message
narasimha.g

New User


Joined: 10 Sep 2009
Posts: 68
Location: Liverpool

PostPosted: Fri Sep 02, 2011 9:13 pm
Reply with quote

Escapa wrote:
Can you please confirm if you have DFSORT or SYNCSORT?

Also what is LRECL and RECFM of the file?


Sorry forgot to mention this...

RECFM is VB

LRECL 2004
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri Sep 02, 2011 9:22 pm
Reply with quote

narasimha.g wrote:
Escapa wrote:
Can you please confirm if you have DFSORT or SYNCSORT?

Also what is LRECL and RECFM of the file?


Sorry forgot to mention this...

RECFM is VB

LRECL 2004

YOU DID NOT ANSWER MY FIRST QUESTION?
Back to top
View user's profile Send private message
narasimha.g

New User


Joined: 10 Sep 2009
Posts: 68
Location: Liverpool

PostPosted: Fri Sep 02, 2011 9:24 pm
Reply with quote

enrico-sorichetti wrote:
given the frequency of Your posts ...
isn ' t it time for Your organization to use the servics of a paid consultant
instead of relying on free consultancy from public forum ?

looks like You and You company do not have a bit of ethics !
or maybe that' s Your way of doing business ???


I have been member since 2 years never asked so many questions.... its just that I am more in need now and usually rely on this forum for any mainframe help.... Nothing to do with the company ethics.... Anyways Thanks for the Help icon_smile.gif
Back to top
View user's profile Send private message
narasimha.g

New User


Joined: 10 Sep 2009
Posts: 68
Location: Liverpool

PostPosted: Fri Sep 02, 2011 9:27 pm
Reply with quote

Bill Woodger wrote:
If you have your whole file, browse it. Go to about 700000th record. Visually identify next logical position to break file. Go down another 700000. Repeat. Hope that you remembered, or wrote down, the exact numbers.

Then you have some start/stop numbers for whatever method you choose to simply split the file.


Thanks very much Bill.... Very helpful for an one off solution.... ll try that....
Back to top
View user's profile Send private message
narasimha.g

New User


Joined: 10 Sep 2009
Posts: 68
Location: Liverpool

PostPosted: Fri Sep 02, 2011 9:28 pm
Reply with quote

Escapa wrote:
narasimha.g wrote:
Escapa wrote:
Can you please confirm if you have DFSORT or SYNCSORT?

Also what is LRECL and RECFM of the file?


Sorry forgot to mention this...

RECFM is VB

LRECL 2004

YOU DID NOT ANSWER MY FIRST QUESTION?


I have SYNCSORT here....
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: Fri Sep 02, 2011 9:36 pm
Reply with quote

Hello

Quote:
I have SYNCSORT here....
Which release? This is at the top of the informational output generated for each run.

The release may influence which solution(s) might be available to meet your requirement.
Back to top
View user's profile Send private message
narasimha.g

New User


Joined: 10 Sep 2009
Posts: 68
Location: Liverpool

PostPosted: Fri Sep 02, 2011 9:38 pm
Reply with quote

dick scherrer wrote:
Hello

Quote:
I have SYNCSORT here....
Which release? This is at the top of the informational output generated for each run.

The release may influence which solution(s) might be available to meet your requirement.


its SYNCSORT FOR Z/OS 1.3.1.1R....
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
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
Search our Forums:

Back to Top