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 » Dfdl

Post new topic  Reply to topic
 Dfdl « View previous topic :: View next topic » 
Author Message
Deepak.k
PostPosted: Thu Aug 18, 2016 10:49 pm    Post subject: Dfdl Reply with quote

Novice

Joined: 18 Aug 2016
Posts: 22

Hi guys,

I have a requirement where i have to parser 4 files using DFDL(fixedLength)

1.All files have Header,Body,Trailer and the issue i am facing is Initiator are different for each file .

If i doesn't use the concept using Intiator in dfdl property Trailer is appending to the body and parsering error occurs.

whether i have to use diiferent dfdl for each file or is there any solution for it.

(all the file are of same length only Initiator are different)

Please help me guys

waiting for your valuable replies..

Thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Aug 19, 2016 4:06 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

So you have four different files with four different formats.

And you're trying to model them all with a single DFDL?

There's no strong reason for doing that. Particularly if the contents of one file change later.

Otherwise, there's no difference in choosing one trailer over another than from choosing one row in the body from another or choosing one field in a row over another or etc. etc. etc.

How you do it is your choice, though.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
shanson
PostPosted: Thu Aug 25, 2016 7:39 am    Post subject: Reply with quote

Partisan

Joined: 17 Oct 2003
Posts: 344
Location: IBM Hursley

If you want a single DFDL model for all 4 formats, you can do that. Model the content as a choice, and if the content does not start with an initiator, try using a DFDL discriminator to distinguish between the 4 (that is, a DFDL annotation that uses a boolean expression to guide the parser).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Dfdl
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.