Grouping and removing duplicates containing multiple headers

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
Rahul26
Member
Posts: 2
Joined: Thu Dec 03, 2015 2:34 am

Grouping and removing duplicates containing multiple headers

Post by Rahul26 » Thu Dec 03, 2015 2:45 am

Hi I am new to forum so if I have not followed any rules please forgive me
I have a requirement.please help me
My input file is in format
Hdr1
Dtl1
Dtl2
Dtl2
Hdr2
Dtl3
Dtl4
Dtl4
Hdr1
Dtl1
Dtl5
Trl
So my output should be
Hdr1
Dtl1
Dtl2
Hdr2
Dtl3
Dtl4
Hdr1
Dtl5



Can anyone help me???? I need to write a jcl for it

Rahul26
Member
Posts: 2
Joined: Thu Dec 03, 2015 2:34 am

Post by Rahul26 » Thu Dec 03, 2015 2:49 am

As one can see within header duplicates detail are being removed at the same time if two same headers like header1has repetion of records like dtl1 then only once the detail should be specified.....the record length of my file is 61

academyindia4

Topic deleted by Admin

Post by academyindia4 » Tue Jan 19, 2016 12:42 pm

<< Content deleted By Admin >>

Post Reply

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



Other References
Mainframe Tools and others