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 » why Leading zeroes for an Integer type are suppressed??

Post new topic  Reply to topic
 why Leading zeroes for an Integer type are suppressed?? « View previous topic :: View next topic » 
Author Message
bremen
PostPosted: Fri Jan 26, 2007 1:09 pm    Post subject: why Leading zeroes for an Integer type are suppressed?? Reply with quote

Novice

Joined: 28 Dec 2006
Posts: 16
Location: Hindustan

Hi all,

I am using MB V5 on AIX.
I am having an input COBOL copy book which is having a Field 9(5).

When the input data of this field is 07320 then the broker dropping that leading zero. And length of that filed in the Inputroot is 4 Surprisingly. I am expecting 5 and i need those leading zeroes too.

Is this one a problem with Broker??

The message set properties for this field are
Logicsl prop's-->Local element--> Type xsd:int-
Physical prop's-->Local element-->
Physical type External decimal
Length count: 5, Length units : 5 Bytes

help needed asap.

Thanks,
Back to top
View user's profile Send private message
pathipati
PostPosted: Fri Jan 26, 2007 2:01 pm    Post subject: Reply with quote

Master

Joined: 03 Mar 2006
Posts: 296

Quote:
Logicsl prop's-->Local element--> Type xsd:int-
xsd:int will drop leading zeros. I donno your exact requirement, but xsd:string will return you full length without dropping leading zeros.
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Fri Jan 26, 2007 5:39 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Umm.

xsd:anything will only provide defaults to the message set.

As in all cases, defaults may not meet your business requirements.

Fortunatley, many many many things about a message set are configurable, and do not require you to go back and change a schema.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kimbert
PostPosted: Sat Jan 27, 2007 12:18 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Did you see this page? http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ad15160_.htm
Quote:
String Justification If you have set the Physical Type property to External Decimal, select Left Justify or Right Justify (the default value) from the drop-down list. If you have selected another value for Physical Type, this is property is inactive.
Padding Character The padding character is used to fill out the remaining character positions when the string length is less than the specified string size. If you have set the Physical Type property to Extended Decimal, and the String Justification property is either Left Justify or Right Justify, specify this character in one of the following ways...

Looks as if you need to set Padding Character to '0' and String Justification to 'Right Justified'
Back to top
View user's profile Send private message
bremen
PostPosted: Mon Jan 29, 2007 9:20 am    Post subject: why Leading zeroes for an Integer type are suppressed?? Reply with quote

Novice

Joined: 28 Dec 2006
Posts: 16
Location: Hindustan

Hi Kimbert,

i already set the Padding character to '0' & String Justification as 'Right justification'.

probably i need to change Logical prop's-->Local element--> Type xsd:int- to Logicsl prop's-->Local element--> Type xsd:string-
as mentioned by pathipati.

Thanks.
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 » why Leading zeroes for an Integer type are suppressed??
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.