|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Modelling esql Bit data type as a CWF MRM Field |
« View previous topic :: View next topic » |
Author |
Message
|
mquser1 |
Posted: Wed Oct 06, 2004 1:47 pm Post subject: Modelling esql Bit data type as a CWF MRM Field |
|
|
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 |
|
 |
kirani |
Posted: Wed Oct 06, 2004 5:16 pm Post subject: |
|
|
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 |
|
 |
mquser1 |
Posted: Thu Oct 07, 2004 7:35 am Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Thu Oct 07, 2004 7:54 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|