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 » represent space in default value in message set

Post new topic  Reply to topic
 represent space in default value in message set « View previous topic :: View next topic » 
Author Message
lium
PostPosted: Tue Jun 01, 2010 8:20 am    Post subject: represent space in default value in message set Reply with quote

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
View user's profile Send private message
lium
PostPosted: Wed Jun 02, 2010 8:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Jun 02, 2010 9:45 am    Post subject: Re: represent space in default value in message set Reply with quote

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
View user's profile Send private message
lium
PostPosted: Wed Jun 02, 2010 10:10 am    Post subject: Reply with quote

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
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 » represent space in default value in 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.