|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Dfdl |
« View previous topic :: View next topic » |
Author |
Message
|
Deepak.k |
Posted: Thu Aug 18, 2016 10:49 pm Post subject: Dfdl |
|
|
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 |
|
 |
mqjeff |
Posted: Fri Aug 19, 2016 4:06 am Post subject: |
|
|
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 |
|
 |
shanson |
Posted: Thu Aug 25, 2016 7:39 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|