Author |
Message
|
Lily |
Posted: Tue Mar 04, 2014 11:32 am Post subject: Converting Packed HEX to unpacked HEX |
|
|
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 |
|
 |
Vitor |
Posted: Tue Mar 04, 2014 11:51 am Post subject: Re: Converting Packed HEX to unpacked HEX |
|
|
 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 |
|
 |
Lily |
Posted: Tue Mar 04, 2014 1:01 pm Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Tue Mar 04, 2014 1:16 pm Post subject: |
|
|
 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 |
|
 |
Lily |
Posted: Tue Mar 04, 2014 1:47 pm Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Wed Mar 05, 2014 3:09 am Post subject: |
|
|
 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 |
|
 |
Lily |
Posted: Thu Mar 13, 2014 5:51 pm Post subject: |
|
|
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 |
|
 |
|