Split one file into Multiple GDG dynamically

316 views Asked by At

Input file has number of records . when there a change in header (12), i need to write those records separately into GDG

Is it possible to create GDG dynamically using SORT, Easytrive?

12 - header 13 - Detail

Input File:

123456777
130000001
130000002
130000003
125453453
130000004
130000002
130000900
124543543
130043353
130043352

output should be

File1.GV***:

123456777
130000001
130000002
130000003

File2.GV***:

125453453
130000004
130000002
130000900

File3.GV***:

124543543
130043353
130043352
0

There are 0 answers