|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
represent space in default value in message set |
« View previous topic :: View next topic » |
Author |
Message
|
lium |
Posted: Tue Jun 01, 2010 8:20 am Post subject: represent space in default value in message set |
|
|
Disciple
Joined: 17 Jul 2002 Posts: 184
|
I want to define default value for a field with length 3.
The field is inside a TDS message defined with its Physical Properties setting to "Fixed Length" for Data Element Separation.
I want to set a default value " ", that is 3 spaces.
But the issues, if I set " ", the whole message set is working but the default value 3 spaces are invisible.
So I would like to use mnemonics.
Based on the Message Model pdf book, it says:
<SP> X’20’ <U+0020> Space
These mnemonics were created for characters that cannot be entered into the
message editor.
You can enter a mnemonic in the form <U+NNNN>, where NNNN are hexadecimal
digits. None of the characters in this structure are case-sensitive. Do not enclose
spaces inside the angle brackets. These numbers represent a Unicode character, not
a character in the code page of the input message.
You can enter a mnemonic in the form <0xNN>, where NN are hexadecimal digits.
None of the characters in this structure are case-sensitive. Do not enclose spaces
inside the angle brackets. These numbers represent a raw hexadecimal byte value,
not a character in the code page of the input message.
If a mnemonic is of the form <0xNN>, it is applied directly to the input data, and no
code page conversion takes place. Otherwise, a mnemonic is applied to the data
after the data has been converted into Unicode from the code page of the input
data.
Default TDS message set propertie
I have tried <SP><SP><SP> and <0x20><0x20><0x20> and <U+0020><U+0020><U+0020>, but none of they are working.
Any help will be appreciated! |
|
Back to top |
|
 |
lium |
Posted: Wed Jun 02, 2010 8:43 am Post subject: |
|
|
Disciple
Joined: 17 Jul 2002 Posts: 184
|
Seems like this is tricky question.
So far the only thing I can say is the WMB or its document might not that reliable.
For example, when I filled in the Encoding Null Value by mistake, the WMB might tell me by deployment message saying :
Encoding Null Value must resolve to a single character when Encoding Null is NullLiteralFill for Element 'InvoiceSuffix'. Syntax is: SPACE, NUL, 0xYY, YY, U+xxxx, 'c', "c". Physical format: 'Text1'.
If I filled in with SPACE, can you image the result? All the Null Vlaue is filled with character 'S' rather than ' '. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jun 02, 2010 9:45 am Post subject: Re: represent space in default value in message set |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
lium wrote: |
Based on the Message Model pdf book, it says:
<SP> X’20’ <U+0020> Space
These mnemonics were created for characters that cannot be entered into the
message editor.
You can enter a mnemonic in the form <U+NNNN>, where NNNN are hexadecimal
digits. None of the characters in this structure are case-sensitive. Do not enclose
spaces inside the angle brackets. These numbers represent a Unicode character, not
a character in the code page of the input message.
You can enter a mnemonic in the form <0xNN>, where NN are hexadecimal digits.
None of the characters in this structure are case-sensitive. Do not enclose spaces
inside the angle brackets. These numbers represent a raw hexadecimal byte value,
not a character in the code page of the input message.
If a mnemonic is of the form <0xNN>, it is applied directly to the input data, and no
code page conversion takes place. Otherwise, a mnemonic is applied to the data
after the data has been converted into Unicode from the code page of the input
data. |
You seem to be quoting this
On the same page it says:
Quote: |
Mnemonics can be used in TDS properties Decimal Point, Escape Character, Reserved Characters, Delimiter, Group Indicator, Tag data Separator, Tag, and Repeating Element Delimiter to specify special characters |
I don't see where it says mnemonics are valid in the default value.
I also have to say I've never tried this & have no access at the moment to try this. Where I've had this situation I've put 3 spaces in the default and not worried that they can't be seen. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
lium |
Posted: Wed Jun 02, 2010 10:10 am Post subject: |
|
|
Disciple
Joined: 17 Jul 2002 Posts: 184
|
Thanks Vitor
I have changed the way for those null fields by outputing null value rather than default value.
But you post really makes sense to me. |
|
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
|
|
|
|