For the fixed length data i want to achieve a grouping as below..Can anybdy confirm that whether this kind of grouping is
possible in DFDL
Sample Data : HeaderARecordBRecordARecordARecordBRecordTrailer
Header,trailer and Records are fixed length (5000 characters)
ARecord initiator = A
BRecord initiator = B
Code:
Header
Records
ARecords
A
A
A
BRecords
B
B
Trailer
And i also wanted to know whether is it possible to include Initiator in the extracted data....when we specify a initiator DFDL skips the initiator and extracts the data...since initiator is part of my data is it possible to include it.
Sometimes, DFDL can produce the exact tree structure that you need.
Sometimes that is not possible, and you need to put in some simple transformation logic.
In this case, you cannot produce the tree structure that you really want because DFDL does not allow a sequence group or a choice group to have maxOccurs > 1. I recommend that you produce a DFDL model that parses the data correctly, and then write some ESQL/Java or design a map that changes the tree structure. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
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