|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to ignore a specific character? <SOLVED> |
« View previous topic :: View next topic » |
Author |
Message
|
billybong |
Posted: Thu Jul 28, 2005 12:24 am Post subject: How to ignore a specific character? <SOLVED> |
|
|
 Disciple
Joined: 22 Jul 2005 Posts: 150 Location: Stockholm, Sweden
|
Hi all!
TDS, WBIMB 5
Im using <LF> as my delimiter but since my message set is going to be used on different platforms I would like to use <CR><LF> as well. I figured that if I could just ignore the <CR> globally and I would be safe in both cases. Is this doable or should I use two different message sets with different delimiters? One would think this would be an easy setting and it prob is, I just haven't found it yet.
Thanks in advance.
Last edited by billybong on Mon Aug 01, 2005 1:32 am; edited 1 time in total |
|
Back to top |
|
 |
martinrydman |
Posted: Fri Jul 29, 2005 12:59 am Post subject: |
|
|
 Centurion
Joined: 30 Jan 2004 Posts: 139 Location: Gothenburg, Sweden
|
When faced with this problem, I usually define the <LF> flavor of the msg def. Then I pre-process (if reading) or post-process (if writing) the message as a BLOB, to either remove <CR> or add it.
I find it a bit of an overkill to define a separate msgset just to deal with this minor detail. Especially if you have lots of message types and/or complex structures, you end up fiddling with the delimiter all over the place. The approach I mentioned, on the other hand, can be encapsulated in two global PROCEDURES, giving you a maintanable solution.
/Martin |
|
Back to top |
|
 |
billybong |
Posted: Mon Aug 01, 2005 1:30 am Post subject: |
|
|
 Disciple
Joined: 22 Jul 2005 Posts: 150 Location: Stockholm, Sweden
|
Thanks for the advice martin, works like a charm. |
|
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
|
|
|
|