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 » Modelling esql Bit data type as a CWF MRM Field

Post new topic  Reply to topic
 Modelling esql Bit data type as a CWF MRM Field « View previous topic :: View next topic » 
Author Message
mquser1
PostPosted: Wed Oct 06, 2004 1:47 pm    Post subject: Modelling esql Bit data type as a CWF MRM Field Reply with quote

Novice

Joined: 03 Jun 2004
Posts: 23

Hi all,

I am trying to construct an output CWF format message. The first field in this message is a sequence of 64 bits (8 bytes). I am wondering how I should model this. In esql, I can use the BIT data type and pack all the 64 bits into it. What should I do to copy this value over into the output message field. When I model my output message in MRM, what data type should I set to this field? I did not find any BIT data types in the MRM. I can see hexBinary, base64Binary and Byte types. Which one should I be using?

Currently I am casting these BITS to a string as follows:
================

DECLARE bMap BIT B'00001111';

SET OutputRoot.MRM.BitMap = CAST(bMap AS CHARACTER CCSID
InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding);

================

Thank you for all your help.
Back to top
View user's profile Send private message
kirani
PostPosted: Wed Oct 06, 2004 5:16 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

mquser1 wrote:

When I model my output message in MRM, what data type should I set to this field?

What is your requirement? How do you want to display this field in output message?
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
mquser1
PostPosted: Thu Oct 07, 2004 7:35 am    Post subject: Reply with quote

Novice

Joined: 03 Jun 2004
Posts: 23

I want this particular field to be displayed in Binary (as a sequence of bits)in the output message. I have other fields that are strings and they should remain as strings.
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Oct 07, 2004 7:54 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The schema types 'hexBinary' and 'base64Binary' work the same way in CWF messages, so you can pick either of these for your logical type.
Then, go to the CWF physical properties and set the length to 8.
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 » Modelling esql Bit data type as a CWF MRM Field
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.