can you please help with this sort situation.
Removing the duplicates within the group's 'DTL' record.
1) The record must NOT be sorted i.e position should be kept
2) removal of duplicate within the HDR-DTL segment group only
3) number of HDR/DTL records are dynamic.
I tried traditional way of adding the SEQ-NBR to the end and removing duplicates - it did not work. Also, tried sort XSUM to get the duplicates and joining with original file even that did not work.
Any help/directions is highly appreciated.
Expected output file:
In this Mainframe Forum - You can post your queries on DFSORT, ICETOOL , SyncSort & JCL Utilities
1 post • Page 1 of 1
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.
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