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 » Question about BITSTREAM()

Post new topic  Reply to topic
 Question about BITSTREAM() « View previous topic :: View next topic » 
Author Message
ernest-ter.kuile
PostPosted: Thu Jun 27, 2002 2:59 am    Post subject: Question about BITSTREAM() Reply with quote

Apprentice

Joined: 13 May 2002
Posts: 49
Location: KLM Holland

I have an MRM which is basicaly in the form of
InputRoot.MRM.HEADER
InputRoot.MRM.PAYLOAD

I want to save the PAYLOAD without the header, but when I try

BITSTREAM(InputRoot.MRM.PAYLOAD);

I get a BLOB containing the whole MRM as if I did a
BITSTREAM(InputRoot.MRM);

Does anybody know a way around this ?
Back to top
View user's profile Send private message Visit poster's website
Coz
PostPosted: Thu Jun 27, 2002 3:58 am    Post subject: Reply with quote

Apprentice

Joined: 20 Feb 2002
Posts: 44
Location: Basel CH

This is the correct functionality of BITSTREAM as it only goes as far as the InputRoot.MRM.

You could try:

DECLARE headerLen Integer;
SET headerLen=LENGTH(InputRoot.MRM.HEADER);
SET OutputRoot."BLOB"."BLOB" = SUBSTRING(BITSTREAM(InputRoot.MRM) from headerLen);
Back to top
View user's profile Send private message
ernest-ter.kuile
PostPosted: Thu Jun 27, 2002 4:04 am    Post subject: Reply with quote

Apprentice

Joined: 13 May 2002
Posts: 49
Location: KLM Holland

ah, simple.

I didn't know that SUBSTRING worked on BLOBs as wel.

Up to a sec ago, I was working on a more complex form which involved a lot of typecasting.

Thanks.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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