Hello,
sorting a file raised some problems, I could not solve so far.
The file is 132 fb and looks like follows:
HDR1 nnnn
HDR2 zzzzzzzzzz
(several info-records)
HDR2 yyyyyyyyy
(several info-records)
HDR1 dddd
HDR2 xxxxxxxxx
(several info-records)
HDR2 wwwwwww
(several info-records)
HDR2 qqqqqqqq
(several info-records)
HDR1 aaaa
and so on.
-
HDR1 is a 4-byte and HDR2 a 22-byte numeric value.
I have a variable number of info-records in each HDR2-group and a variable number of HDR2-records in each HDR1-group. It is possible, that a group with a HDR1 already known appeares later in the file again with different HDR2-goups.
This file should be sorted HDR1- by HDR1-group and in between each HDR1 by HDR2-groups with the (unsorted) info-records for each HDR2.
I tried a lot using ICETOOL and SPLICE with some sucess, but I never could combine splice results on HDR1 and HDR2.
Any help to let me reach the result file I need?
Thanks a lot in advance!
Sorting groups with several headers
Moderators: Frank Yaeger, Moderator Group
Martin.G,
Look at the smart DFSORT Trick "Sort groups of records" here
http://www.ibm.com/support/docview.wss? ... g3T7000094
Look at the smart DFSORT Trick "Sort groups of records" here
http://www.ibm.com/support/docview.wss? ... g3T7000094
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page