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 Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 5 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm


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