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 » problem with group terminators and \r\n

Post new topic  Reply to topic
 problem with group terminators and \r\n « View previous topic :: View next topic » 
Author Message
findingsolution
PostPosted: Tue Aug 24, 2010 11:54 pm    Post subject: problem with group terminators and \r\n Reply with quote

Novice

Joined: 27 Jul 2010
Posts: 11

hi I have something like this in my message

...........(record, length 50)
...........(record , length 50)
....
....
....

The problem is, when I send the message as

...........(record, length 49)
...........(record, length 50)

it generates an exception since the first record is of length 49 instead of 50 and stops there. Whereas I want it to move to the next record after generating an exception. I am using group terminators as <CR><LF> and Data pattern as \r\n. Please help me out with this
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Aug 25, 2010 3:45 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The MRM parser will not continue after a *parsing* error. If you set Failure Action correctly, it can continue after a *validation* error.

If you have declared your record to be fixed-length and 50 bytes/characters then the parser will halt when it finds a 49-byte record - because that is a parsing error.
You could change Data Element Separation to 'All Elements Delimited' or 'Tagged Delimited' and allow the length of a record to vary. If you also wanted to check the length, you could do that using Value Constraints in the message model. Those will produce *validation* errors, which are not always fatal ( you can ask for those to be reported as an Exception List when the parse finishes ).
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 » problem with group terminators and \r\n
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.