ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Doubt on Message set

Post new topic  Reply to topic
 Doubt on Message set « View previous topic :: View next topic » 
Author Message
sri_csee1983
PostPosted: Mon Apr 28, 2008 2:03 am    Post subject: Doubt on Message set Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Vitor
PostPosted: Mon Apr 28, 2008 2:07 am    Post subject: Re: Doubt on Message set Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Apr 28, 2008 2:09 am    Post subject: Re: Doubt on Message set Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Doubt on Message set
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.