|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Doubt on Message set |
« View previous topic :: View next topic » |
Author |
Message
|
sri_csee1983 |
Posted: Mon Apr 28, 2008 2:03 am Post subject: Doubt on Message set |
|
|
 Centurion
Joined: 25 Mar 2008 Posts: 125 Location: Chennai,India
|
Dear Friends,
I am having a doubt on creating a message definition file (changing the property of the same). I have created a message definition file from a copy book, in which I have a numeric field with length 10. Now if I get the input with a value as follows for this numeric field
Value --> 0007564951
Broker is taking the value for this field as 7564951. Which property of that field in the message definition file shud I change so tht the broker takes the value as 0007564951?  _________________ With Cheers,
Sri |
|
Back to top |
|
 |
Vitor |
Posted: Mon Apr 28, 2008 2:07 am Post subject: Re: Doubt on Message set |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
sri_csee1983 wrote: |
Broker is taking the value for this field as 7564951. Which property of that field in the message definition file shud I change so tht the broker takes the value as 0007564951?  |
That is the value of the numeric field, so broker is taking it correctly.
If at some point you want it displayed or stored such that it has leading zeros, then you need to format it as such in a character string. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Apr 28, 2008 2:09 am Post subject: Re: Doubt on Message set |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
sri_csee1983 wrote: |
I have created a message definition file from a copy book, in which I have a numeric field with length 10. |
If by this you mean a copybook with a field like:
Code: |
03 THISVALUE PIC 9(10) |
which would display as you indicate, then remember that's the definition of a particular character field, not a numeric one. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
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
|
|
|
|