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 » HEX Data type in WTX

Post new topic  Reply to topic
 HEX Data type in WTX « View previous topic :: View next topic » 
Author Message
Lily
PostPosted: Thu Mar 13, 2014 5:58 pm    Post subject: HEX Data type in WTX Reply with quote

Novice

Joined: 15 Oct 2013
Posts: 13

Hi,

Can somebody tell me what should be the properties for an Hexa decimal number in the type tree.

I am getting the value as 82200000000000000400000000000000. which is 16 bytes of HEX data ( 82 20 00 00....). I tried all teh combinations of item subtype,interpretation,presentation. but its reading first 16 numbers if I give the length as 16 bytes.

I am required to read it and test on each bit to check next fileds availability.(ISO8583 message bitmap).

DO I need to read it as character with 32 byte length and then try to convert it to hex or is there a way that we can define the field as hex so tht I can directly read it using 16 bytes length.

Quick response would be much appreciated.
Thanks!!!
Back to top
View user's profile Send private message
Gralgrathor
PostPosted: Thu Mar 13, 2014 10:16 pm    Post subject: Reply with quote

Master

Joined: 23 Jul 2009
Posts: 297

I should think that hex is a *representation* of a value, not a type. So you need a scalar type that's 16 bytes long, no?

Of course, if you have the character cast from the blob input message, then you already have the hex representation of the original bitstream.

Question is now: why are you doing this? Might parsing the bitstream not be done by parsing the message through a message set? You already have the exact specifications for this type of message, after all. And a quick google search gives you such articles as this one.
_________________
A measure of wheat for a penny, and three measures of barley for a penny; and see thou hurt not the oil and the wine.
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Fri Mar 14, 2014 1:51 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Hi Lily,

ISO8583 is a very complex data format. You should not be trying to create a WTX map for ISO8583 unless you are already an expert with data formats. IBM supplies pre-built maps for WTX, and pre-built models for DFDL.

As I said on the other thread, if you are using WMB v8 then you should consider using WMB / DFDL to parse, map and write the ISO8583 data.
If you are using v7 then you should buy the appropriate industry pack from WTX.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
Lily
PostPosted: Fri Mar 14, 2014 6:04 am    Post subject: Reply with quote

Novice

Joined: 15 Oct 2013
Posts: 13

Hi,

I am new to this comapny and WTX, the team here is used to using WTX nodes for mapping and they never used message sets in previous projects.

I am inclined towards using WMB but not sure how to make them use it.

So, My first goal is to complete the map and then comapare the map and the dfdl message set.

I agree HEX is a represenattion of data.. but whatever the propertors I select for this field its reading each number as a byte. How do I read the 2 numbers(82 ,00,00..) into a byte.

I am done with all the other mapping settings except reading this one.
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Mar 14, 2014 8:06 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
I am new to this comapny and WTX, the team here is used to using WTX nodes for mapping and they never used message sets in previous projects.
Yes, I understand that you probably don't have a choice.

Please note, though, that I am not recommending that you use a message set for this. I'm recommending using the open-source DFDL model for ISO8583, along with the sample code ( for adjusting the bitmaps ) provided with the product.
Quote:
I am done with all the other mapping settings except reading this one.
You need the value of each of those 128 bits to control the parsing of each of the 128 data fields that follow. Have you put the required component rules into the WTX map?
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
Lily
PostPosted: Fri Mar 14, 2014 9:43 am    Post subject: Reply with quote

Novice

Joined: 15 Oct 2013
Posts: 13

Yes. I am using the teston() condition for all the fields. But as it is reading each number as a byte I am getting wrong output. ( instead of 1000 0010(82) it's 0011 1000( 8 as text).
If I can figure out how to read 2 numbers as a single byte, I can complete the map.
Back to top
View user's profile Send private message
Gralgrathor
PostPosted: Fri Mar 14, 2014 10:07 am    Post subject: Reply with quote

Master

Joined: 23 Jul 2009
Posts: 297

Lily wrote:
they never used message sets in previous projects.


That would seem to me to be the opposite of a best practice. I would advise to use messagesets wherever possible. This reduces your codebase, makes validation routine, allows easier maintenance and reduces the risk of mistakes.
_________________
A measure of wheat for a penny, and three measures of barley for a penny; and see thou hurt not the oil and the wine.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » HEX Data type in WTX
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.