Posted: Mon Nov 24, 2008 8:57 am Post subject: Parsing Multiple Cobol input files into XML
Apprentice
Joined: 07 Nov 2008 Posts: 30
Hi,
Here is my problem statement.
The input message is nested Cobol Copybook. The output message is single XML.
The cobol copybook contains one parent element and (0-99999) no.s of child elements. Each of these parent and multiple child elements refer to different copybooks for validation.
What I need to do is get the complete input message as Cobol Copy book from input, validate the parent cobol copybook, map to the output xml file, then check for the child element it contains by looping through the child elements. Once we find the existence of the child element, we need to validate the message and then map the fields to XML output file.
These are the steps I have thought of to follow.
1. Need to validate the parent cobolcopy book at the MQ input node.
2. Then in a compute node ESQL will map the parent cobol copybook fields to output XML file
3. Then in the compute node ESQL itself, the child element looping will be done
4. Once it find the child element record, it has to validate and map the input child cobolcopybook fields into the same output XML file mentioned in step-2.
I need help in implementing the Step-4 for this problem. If you people think of a better way to implement the complete solution, please let me know.
Also let me know if I am still not clear about the problem statement.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum