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 » Ignore empty lines in DFDL

Post new topic  Reply to topic
 Ignore empty lines in DFDL « View previous topic :: View next topic » 
Author Message
kash3338
PostPosted: Fri Nov 18, 2016 2:27 am    Post subject: Ignore empty lines in DFDL Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

Hi,

We have a scenario where we get a delimited message (CRLF delimited) and towards the end of the message we get "n" number of blank lines. How do we ignore these empty lines towards the end of file?

The structure of DFDL looks like this,
Code:

<Message_Root>
   --sequence
      ----Variable1
      ----Variable2
      ----
      ----
      ----VariableN


We have tried the below option,

    Setting "terminator" to "%CR;%LF;" at both <Message_Root> and sequence.
    Setting "Document Final Terminator Can be missing" to Yes at both levels.


It only ignores two blank lines and if there are more than two blank lines in file, the parsing fails with below error,
Unexpected data found at offset 'xxx' after parsing completed. Data: '0x0d...'.
Back to top
View user's profile Send private message Send e-mail
kash3338
PostPosted: Fri Nov 18, 2016 2:50 am    Post subject: Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

Got this working by setting "%CR;%LF;%WSP*;" as Terminator at both levels instead of "%CR;%LF;".
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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