|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
BIP2925E: (, 12.32) : A byte array literal must have an even |
« View previous topic :: View next topic » |
Author |
Message
|
rohit |
Posted: Mon Sep 03, 2007 5:57 am Post subject: BIP2925E: (, 12.32) : A byte array literal must have an even |
|
|
 Apprentice
Joined: 05 Jul 2005 Posts: 40
|
Hi ,
when i try to use the blob message as hex value in my esql ,it gives the following error in the event log;
Quote: |
BIP2925E: (, 12.32) : A byte array literal must have an even number of digits.
This is most likely to have been caused by attempting to use a X'' literal with an odd number of digits (0-9, A-F, a-f) between the quotes.
Ensure that the literal has an even number of digits. |
For example,
For the word apple i am using as
DECLARE MSG BLOB X'6170706C6'
Can anybody suggest me where i am wrong?
Thanks in advance
Regards,
Rohit _________________ IBM Certified System Administrator - WebSphere MQ V6.0
------------------------------------
Don't think that you can!...But,Know that you can!.. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Sep 03, 2007 6:13 am Post subject: Re: BIP2925E: (, 12.32) : A byte array literal must have an |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
rohit wrote: |
This is most likely to have been caused by attempting to use a X'' literal with an odd number of digits (0-9, A-F, a-f) between the quotes.
Ensure that the literal has an even number of digits. |
rohit wrote: |
DECLARE MSG BLOB X'6170706C6' |
rohit wrote: |
Can anybody suggest me where i am wrong? |
You've miscounted? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
leopucci |
Posted: Tue Dec 26, 2017 11:46 am Post subject: |
|
|
Apprentice
Joined: 09 Nov 2017 Posts: 28
|
i think that by the time, you already have solved. But if anyone check this thread, the problem is that you are passing a odd number of characters to be casted to blob.
Blob holds even numbers only. if you are making blob manipulation, you will also have to complete octets and manipulations to even after math manipulation.
Regards |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Dec 26, 2017 1:06 pm Post subject: Re: BIP2925E: (, 12.32) : A byte array literal must have an |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
rohit wrote: |
For example,
For the word apple i am using as
DECLARE MSG BLOB X'6170706C6'
Can anybody suggest me where i am wrong?
Thanks in advance
Regards,
Rohit |
Should it not be x'6170706C65' for apple?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
leopucci |
Posted: Tue Dec 26, 2017 1:28 pm Post subject: Re: BIP2925E: (, 12.32) : A byte array literal must have an |
|
|
Apprentice
Joined: 09 Nov 2017 Posts: 28
|
fjb_saper wrote: |
rohit wrote: |
For example,
For the word apple i am using as
DECLARE MSG BLOB X'6170706C6'
Can anybody suggest me where i am wrong?
Thanks in advance
Regards,
Rohit |
Should it not be x'6170706C65' for apple?  |
The first message contains the wrong number of characters:
wrong 61 70 70 6C 6
right 61 70 70 6C 65 |
|
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
|
|
|
|