|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
default values for MRM elements |
« View previous topic :: View next topic » |
Author |
Message
|
miron |
Posted: Wed Apr 02, 2003 10:17 am Post subject: default values for MRM elements |
|
|
Apprentice
Joined: 27 Jun 2002 Posts: 39 Location: New York
|
Hello,
I use WMQI 2.1 CSD04.
I imported Cobol copybook into MRM and ran into some problems.
Is there any way to set a default value for my MRM fields? I have element declared as float (cobol COMP-3). I can receive null value for this field (hex '00') in my inbound message but then the flow fails with following msg:
BIP5505E: Data conversion failed: data invalid. Type of data being read: packed decimal, no sign found , data: 0x0000000000000000;
I tried to create Value Constrains for this element with 0 (zero) in Value field however this does not seem to work. Flow still fails with above error.
Is there any way to replace null with default value in my incoming data so it will not fail during parsing?.
When I edit my data and send '0000000C' instead of null it works fine.
Thanks.. |
|
Back to top |
|
 |
kirani |
Posted: Wed Apr 02, 2003 11:50 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
What is your COBOL PIC clause for this element? I don't think this will work because your input data X'00' is not a valid COMP-3 value. If you cannot change your program to generate valid data then first read your input message as BLOB and replace NUL chars (X'00000000') with X'0000000C' and then use MRM parser to parse this message. _________________ 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 |
|
 |
miron |
Posted: Wed Apr 02, 2003 11:57 am Post subject: |
|
|
Apprentice
Joined: 27 Jun 2002 Posts: 39 Location: New York
|
Hi Kirani,
Thanks for reply,
I receive data from external client that generates it in PL/1. As i see it can come as null or packed decimal.
So you are saying that there is no option to set a default value for my MRM element in case incoming data has null value?
In what scenarios then ValueConstraints are used? I undrestand they should be used to set default value, correct?
Thanks for your input.
Miron |
|
Back to top |
|
 |
kirani |
Posted: Wed Apr 02, 2003 1:28 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Hi Miron,
My understanding is that the default value contraint is used only when you output a message. _________________ 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 |
|
 |
|
|
 |
|
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
|
|
|
|