DFSORT/ICETOOL to identify Parent for a child

In this Mainframe Forum - You can post your queries on DFSORT, ICETOOL , SyncSort & JCL Utilities

Moderators: Frank Yaeger, Moderator Group

Post Reply
Upendra_Pandey
Member
Posts: 1
Joined: Wed Jun 22, 2016 12:09 pm

DFSORT/ICETOOL to identify Parent for a child

Post by Upendra_Pandey » Wed Jun 22, 2016 4:15 pm

Hi,
My Input file layout is mentioned as below (col 1-3+col 4-5 is Key).

KODZENIZGZQZRZPZFTETGTKTL
KODZFNIZEZGZQZRZPTETG
KODZGNIZEZQZRZPZFTETGTKTL
KODZINIZEZGZQZP
KODZNNIZQ
KODEHNIEIZAZBZCZDZEZFZGZPZQZR
KODXRNIXQ

Where,
Col 1-3 --> Prog Sol Code
Col 4-5 --> Sub Prog Sol Code (parent) which can be transferred to sub prog sol code (child) represented by col 6-7, 8-9, 10-11 and so on (can occurs up to 100 times)

Now I have to determine for a sub prog sol codes (child), what could be the sub prog sol code (Parent) from which it can be transferred?
Like if we refer the above mentioned data:

Sub prog sol ZG (child) can be transferred from ZE, ZF, ZI, EH
& Sub prog sol ZF (child) can be transferred from ZE, ZG, EH
So I want my output as below

KODZG ZE,ZF,ZI,EH
KODZF ZE,ZG,EH

I am new to mainframe system. Could it be done in dfsort/icetool or in Cobol? Please help me out.

Thanks
Upendra

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