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 » [Solved] CWF error .... ???

Post new topic  Reply to topic
 [Solved] CWF error .... ??? « View previous topic :: View next topic » 
Author Message
elvis_gn
PostPosted: Thu Jun 09, 2005 8:05 am    Post subject: [Solved] CWF error .... ??? Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi Im using a CWF wire format in one of my message sets.

The input message has multiple rows and each is to be considered a new message.....

I have been successful in implementing the requirement but find that the sample data has a LF or CRLF at the end of every row.....

This is making the parsing go wrong.....

Where can I set something like a delimiter of the string being a LF or CRLF...(I have made it work for TDS as i could specify the group terminator as LF)

Please help...


Last edited by elvis_gn on Sat Jun 11, 2005 10:50 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
chanduy9
PostPosted: Thu Jun 09, 2005 11:44 am    Post subject: Reply with quote

Disciple

Joined: 28 Nov 2001
Posts: 177
Location: USA

Hi,

To handle the multiple rows in CFW, you should know how many records are coming in, based on that your msg need to be repeated, to handle CRLF you can define a variable of binary type. The binary variables take only HEX values so you can use 0D0A.

Thanks,
Chandra.
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Jun 10, 2005 1:19 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

If your data is delimited you should be using TDS, not CWF. CWF does not support delimited data. Or is there some reason why you decided not to use TDS?
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Sat Jun 11, 2005 4:10 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Actually the string does not have any delimiters so i did not go for TDS.

the number of rows is dynamic and they are only seperated by an ENTER( i.e is an LF or CRLF).

I managed to get the multiple rows, but an getting some box kind of character due to the line feeds....

chanduy9 can u tell me what is this 0D0A....???

Thx.
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Sat Jun 11, 2005 5:36 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Carriage Return / Line feed *is* a delimiter.

If you do not have in the message an indicator of how many records are in the message, you can not use CWF.

0D0A is the hex value for CR/LF.
_________________
I am *not* the model of the modern major general.
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 » [Solved] CWF error .... ???
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.