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 File based on Record Type Grouping

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> SYNCSORT
View previous topic :: :: View next topic  
Author Message
sundarg

New User


Joined: 12 May 2015
Posts: 1
Location: India

PostPosted: Wed May 27, 2015 5:47 am    Post subject: Split File based on Record Type Grouping
Reply with quote

Hi All,
I need a help to split a VB file based on record type grouping. We have a file which contains thousands of application data records. Each application will have many record types.
Record type 01 to another record type 01 will be considered as one application data. We need split file based on Number of applications, like 500 application data records in each output file. Say if the input file has 30K applications we need write 60 output files. The number of applications per day will vary.
The file having many record type with different record length, it is Variable Block file and for sort we have SYNCSORT FOR Z/OS 1.3.2.1R
Please find the sample input and output files below.

Thanks in Advance.



Input Record Format:
00<Header_Record>
01<Application_MetaData_1>
02<RT_1_Records_1>
02<RT_2_Records_1>
02<RT_3_Records_1>
02<RT_4_Records_1>
01<Application_MetaData_2>
02<RT_1_Records_2>
02<RT_2_Records_2>
02<RT_3_Records_2>
02<RT_4_Records_2>
01<Application_MetaData_3>
02<RT_1_Records_3>
02<RT_2_Records_3>
02<RT_3_Records_3>
02<RT_4_Records_3>
01<Application_MetaData_4>
02<RT_1_Records_4>
02<RT_2_Records_4>
02<RT_3_Records_4>
02<RT_4_Records_4>
99<Trailer_Records>


Expected Output in 4 files as per the number of Application Data
File_1:
00<Header_Record>
01<Application_MetaData_1>
02<RT_1_Records_1>
02<RT_2_Records_1>
02<RT_3_Records_1>
02<RT_4_Records_1>
99<Trailer_Records>

File_2:
01<Application_MetaData_2>
02<RT_1_Records_2>
02<RT_2_Records_2>
02<RT_3_Records_2>
02<RT_4_Records_2>
99<Trailer_Records>

File_3:
01<Application_MetaData_3>
02<RT_1_Records_3>
02<RT_2_Records_3>
02<RT_3_Records_3>
02<RT_4_Records_3>
99<Trailer_Records>

File_4:
01<Application_MetaData_4>
02<RT_1_Records_4>
02<RT_2_Records_4>
02<RT_3_Records_4>
02<RT_4_Records_4>
99<Trailer_Records>
Back to top
View user's profile Send private message

View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> SYNCSORT All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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