|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Parser error - sign bit not found in packed decimal |
« View previous topic :: View next topic » |
Author |
Message
|
lung |
Posted: Sat Nov 09, 2002 12:56 am Post subject: Parser error - sign bit not found in packed decimal |
|
|
 Master
Joined: 27 Aug 2002 Posts: 291 Location: Malaysia
|
Broker (resides in USS) is receiving a message from OS/390. When it tries to parse the message into MRM, it throws an exception.
The parser encounters this error when it tries to parse a particular field which is packed decimal, S9(13)V99 COMP-3. This is defined as a Packed Decimal in the MRM with Length count of 8 and Signed set to Yes.
The following is the exception trace:-
(0x1000000)ConversionException = (
(0x3000000)File = '/build/S210P/src/cpi/bsutils/datacnv.cpp'
(0x3000000)Line = 5219
(0x3000000)Function = 'DataCnv::ValidatePackedDecimal'
(0x3000000)Type = ''
(0x3000000)Name = ''
(0x3000000)Label = ''
(0x3000000)Text = 'CPI Converter Input Data Invalid'
(0x3000000)Catalog = 'WMQIv210'
(0x3000000)Severity = 3
(0x3000000)Number = 5505
(0x1000000)Insert = (
(0x3000000)Type = 5
(0x3000000)Text = 'packed decimal, no sign found '
) _________________ lung |
|
Back to top |
|
 |
kirani |
Posted: Sat Nov 09, 2002 11:28 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Lung,
Looks like your fields are not aligned properly, Pl verify the field length for other elements that appear before this COMP-3 field in your copybook. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
lung |
Posted: Sun Nov 10, 2002 4:21 pm Post subject: |
|
|
 Master
Joined: 27 Aug 2002 Posts: 291 Location: Malaysia
|
Thanks for the response, Kiran.
I've verified the length in my MRM and in the copybook, all of them seems to be proper.
I'll check again manually... Anyway can there be any other reason? FYI, I didn't set any virtual decimal points in my MRM but that shouldn't matter, right... And S9(13)v99 IS 8 bytes right? _________________ lung |
|
Back to top |
|
 |
kirani |
Posted: Sun Nov 10, 2002 6:54 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Oh no, that matters!
As per your PIC clause you should have following settings:
Type: Packed Decimal
Length: 8
Signed: Yes
Virtual Decimal Points: 2 _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
lung |
Posted: Mon Nov 11, 2002 4:01 pm Post subject: |
|
|
 Master
Joined: 27 Aug 2002 Posts: 291 Location: Malaysia
|
Guess what... It turns out that the culprit is not related to the packed decimal field after all! There's a field before it that has repeating occurences... And this turn out to be reason why the parser failed.
Before this I defined the repeating field in the Connection tab (max occurs) but it turns out I need to define the repeat count in the CWF tab instead to get it to work properly...
Anyway, thanks Kiran! _________________ lung |
|
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
|
|
|
|