Model the message using MRM CWF ( if on v7 ) or DFDL ( if on v8 or v9 ).
The conversion is usually one line of ESQL ( or any other transformation language ). _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Posted: Tue Mar 04, 2014 7:23 am Post subject: Re: Using ESQL how do we convert an XML message to copybook
Yatiri
Joined: 15 Apr 2008 Posts: 637 Location: Germany
upender wrote:
Using ESQL how do we convert an XML message to copybook format
without changing or editing the message itself?
You have to distinguish between the msg tree structure and (if you need that) the flat file structure
You get XML IN (thats a tree, great!) and with ESQL you convert into another ((logical) type) tree.
With the msg-set you finally write the (target/out) tree (which resembles your out-structure) into a flat file ...
... or you just use XMLNSC (if you want to output XML) and you then do not require a msg set, which can be a big relieve!
If you really need the flat file cobol copybook format... well I don't know if I wanted to create a msg set for that or I'd try to get it from somewhere (support pack or equivalent). _________________ Just use REFERENCEs
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