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 » Converting Packed HEX to unpacked HEX

Post new topic  Reply to topic
 Converting Packed HEX to unpacked HEX « View previous topic :: View next topic » 
Author Message
Lily
PostPosted: Tue Mar 04, 2014 11:32 am    Post subject: Converting Packed HEX to unpacked HEX Reply with quote

Novice

Joined: 15 Oct 2013
Posts: 13

Hi everyone,

I am working on my project where I am supposed to send the ISO message to third party using TCP/IP protocol.
The Iso message is 0800822000000000000004000001000000000301225113000000061MCP02, but the message I am supposed to send the third party as follows 03FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDCDFF444
0F080082200000000000000400000100000000030122511300000006143702000

where 003F is the length and the remaining message is the unapacked Hex. I am successfully creating a message as 0800822000000000000004000001000000000301225113000000061MCP02, but not sure how to convert it to unpacked hex in esql.
Can please somebody suggest me how to do it. its really urgent.

Thanks in advance!
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Mar 04, 2014 11:51 am    Post subject: Re: Converting Packed HEX to unpacked HEX Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Lily wrote:
not sure how to convert it to unpacked hex in esql.


What version of WMB/IIB?

Why are you trying to do this in ESQL rather than MRM/DFDL?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Lily
PostPosted: Tue Mar 04, 2014 1:01 pm    Post subject: Reply with quote

Novice

Joined: 15 Oct 2013
Posts: 13

I am building ISO the message in WTX map. We are using WMB 8. the response from the map looks like 0800822000000000000004000001000000000301225113000000061MCP02. Now I have to add the length of the message and convert it to unpacked hex in esql before sending it.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Mar 04, 2014 1:16 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Lily wrote:
I am building ISO the message in WTX map. We are using WMB 8. the response from the map looks like 0800822000000000000004000001000000000301225113000000061MCP02. Now I have to add the length of the message and convert it to unpacked hex in esql before sending it.


If you're using WTX (which is a fairly comprehensive data transformation engine) I again ask why you're trying to do this in ESQL
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Lily
PostPosted: Tue Mar 04, 2014 1:47 pm    Post subject: Reply with quote

Novice

Joined: 15 Oct 2013
Posts: 13

I am not sure how to do it in WTX as well. Can you please suggest me ho to do it in WTX.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Mar 05, 2014 3:09 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

WMB v7 was not able to read and write ISO8583 because the MRM parser could not handle the bitmaps.
WMB v8 is capable of reading and writing ISO8583 messages ( using DFDL ) without the need to call out to WTX. See https://github.com/DFDLSchemas/ISO8583

The data that you are starting with is a different length from the 'unpacked hex' that you claim you want to output. I cannot work out what the conversion logic should be. Do you know? Are you sure that the '03F' at the start is a length?

Are the 0xFFs representing the ISO8583 bitmap? If so, then you need to look at the ISO8583 sample that comes with WMB v8 ( it shows how to set the bitmap using ESQL ). If you decide to use this technique then you need to be using WMB/DFDL for writing the ISO8583 message, not 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: Thu Mar 13, 2014 5:51 pm    Post subject: Reply with quote

Novice

Joined: 15 Oct 2013
Posts: 13

Hi,
I could do the needed conversion using CCSID 37.
Thanks everyone for your help!
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 » Converting Packed HEX to unpacked HEX
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.