For example, input file is
Code: Select all
01 Filer header
02 batch header 1
10 detail record
10 detail record
10 detail record
20 000002 batch trailer 1 record
02 batch header 2
10 detail record
10 detail record
10 detail record
20 000002 batch trailer 2 record
99 000004 file trailer
Code: Select all
01 Filer header
02 batch header 1
10 detail record
10 detail record
10 detail record
20 000003 batch trailer 1 record
02 batch header 2
10 detail record
10 detail record
10 detail record
20 000003 batch trailer 2 record
99 000006 file trailer
How can this be done using DFSORT? I went through this forum to check for a solution myself, but ended up seeing only for single trailer updates only. The example mentioned in the following link also shows to split different keys to separate output datasets.
http://pic.dhe.ibm.com/infocenter/zos/v ... cg6044.htm
Can you please help?
Thanks,
Nachi