Author |
Message
|
bremen |
Posted: Fri Jan 26, 2007 1:09 pm Post subject: why Leading zeroes for an Integer type are suppressed?? |
|
|
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 |
|
 |
pathipati |
Posted: Fri Jan 26, 2007 2:01 pm Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Fri Jan 26, 2007 5:39 pm Post subject: |
|
|
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 |
|
 |
kimbert |
Posted: Sat Jan 27, 2007 12:18 pm Post subject: |
|
|
 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 |
|
 |
bremen |
Posted: Mon Jan 29, 2007 9:20 am Post subject: why Leading zeroes for an Integer type are suppressed?? |
|
|
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 |
|
 |
|