|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Tip: Make a blob string readable |
« View previous topic :: View next topic » |
Author |
Message
|
Herbert |
Posted: Mon Feb 08, 2010 2:57 am Post subject: Tip: Make a blob string readable |
|
|
 Centurion
Joined: 05 Dec 2006 Posts: 146 Location: Leersum, The Netherlands
|
A handy tip if you want to translate BLOB values like "e0e1e2e3e4e5e6e7e8e9eaebecedeeef" to a readable string when you are analyzing logs or so.
- Open UltraEdit and create a file with just one space
- Optional: Switch to EBCDIC with "File" - "Conversions" - "ASCII to EBCDIC"
- Execute Ctrl-H, Ctrl-A, Ctrl-R
- ASCII: Replace '20' with the BLOB string.
- EBCDIC: Replace '40' with the BLOB string.
- Go with Ctrl-H back to normal mode. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Feb 08, 2010 3:04 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I find this little snippet of Perl to be quite handy.
Code: |
while (<>) {
print pack("H*",$_);
} |
|
|
Back to top |
|
 |
WMBDEV1 |
Posted: Mon Feb 08, 2010 4:03 am Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
|
Back to top |
|
 |
Gert-Jan |
Posted: Mon Feb 08, 2010 7:50 am Post subject: Re: Tip: Make a blob string readable |
|
|
Newbie
Joined: 30 Sep 2004 Posts: 5 Location: The Netherlands
|
Herbert wrote: |
A handy tip if you want to translate BLOB values like "e0e1e2e3e4e5e6e7e8e9eaebecedeeef" to a readable string when you are analyzing logs or so. |
Hi all,
I created a small utility program for this problem quite recently.
It's called Hexdump2Text. It doesn't just convert a BLOB to EBCDIC or ASCII. It also takes an user selected encoding into account.
See also: http://www.gjdenbesten.nl/Hexdump2Text.html
The first version (1.0.0) was released under the GPL v3 at January 31th, 2010. Version 1.0.1 was released yesterday.
 |
|
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
|
|
|
|