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 » CAST Function

Post new topic  Reply to topic Goto page Previous  1, 2
 CAST Function « View previous topic :: View next topic » 
Author Message
goldym
PostPosted: Wed Feb 28, 2007 6:44 am    Post subject: Reply with quote

Centurion

Joined: 24 Jun 2005
Posts: 116

jefflowrey wrote:
What happens if the length field causes the message to go from 4 bytes long to 5 bytes long?



Doesn't matter, none of the fields are fixed length they are all variable length.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Feb 28, 2007 6:45 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Your solution is far too complicated. Would this work?
- ASBITSTREAM to obtain a BLOB
- Manipulate the BLOB to insert the correct length.
I know it means doing a little bit of parsing in your ESQL, but look at the alternative!
Back to top
View user's profile Send private message
goldym
PostPosted: Wed Feb 28, 2007 6:49 am    Post subject: Reply with quote

Centurion

Joined: 24 Jun 2005
Posts: 116

kimbert wrote:
Your solution is far too complicated. Would this work?
- ASBITSTREAM to obtain a BLOB
- Manipulate the BLOB to insert the correct length.
I know it means doing a little bit of parsing in your ESQL, but look at the alternative!



My solution isnt complicated at all, just cumbersome. Let me be clear on your suggestion.

1. After I map from xml to TDS
2. ABISTREAM to obain BLOB (still unsure of this syntax)
3. Manipulate the BLOB to insert the correct Length (twice)
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Feb 28, 2007 6:53 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You should be able to calculate the length of the Length field without having to insert it into the message first.
_________________
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 Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » CAST Function
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.