ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Issue in Defining DFDL Parser for a scenario

Post new topic  Reply to topic Goto page Previous  1, 2
 Issue in Defining DFDL Parser for a scenario « View previous topic :: View next topic » 
Author Message
DP1234
PostPosted: Tue Oct 28, 2014 11:20 pm    Post subject: Reply with quote

Apprentice

Joined: 25 May 2014
Posts: 40

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.

Help much appreciated

Thanks
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Oct 29, 2014 2:33 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Issue in Defining DFDL Parser for a scenario
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.