1 year ago

#319463

test-img

samrat

Split one file into Multiple GDG dynamically

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

cobol

mainframe

zos

dfsort

easytrieve

0 Answers

Your Answer

Accepted video resources