Posted: Sun Jun 25, 2006 6:09 pm Post subject: Sequence of record in message is not fixed.
Acolyte
Joined: 19 Dec 2005 Posts: 67
I have a design issue,
I need to transform CobolCopy book to an XML. The cobol copy book whivh I will be getting will be a set of records
like R1......R2......T1......P1........... Each record is of 3500 bytes. First two character will represent record type.
These record can occurs in any order and lenght of the message will vary. Ths cobol copybook need to be tansaformed into XML filed by field basis.
Similarly I need to transform XML to cobol copy book.
One solution come to my mind is as follows
1. creat a message for each record in message set.
2. Create a function for each record type
3. In the function pass this record and Outputroot . Use the CREATE statement with the DOMAIN and PARSE clauses to record.
4. Finally use set statement for set outgoung XML messages.
I have to write alsmost 35 function for this as I will be geting n35 diffrent kind of records. Similrly I have to write 35 diffent function for converting XML to copybook
I would like to know is there any better solution to this us present. Please share you knowledge for this problem.
Can't you use just one flow and use the compute node or filter node to route the message to different nodes or mapping nodes which will reformat the messag ?
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