|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Problem entering fixed value (<LF>) in Logical Propert |
« View previous topic :: View next topic » |
Author |
Message
|
rodmill |
Posted: Thu Sep 01, 2011 4:11 pm Post subject: Problem entering fixed value (<LF>) in Logical Propert |
|
|
Novice
Joined: 01 Feb 2007 Posts: 13
|
I am trying to enter a fixed (or default) value in the Logical Properties - Local Element - Value of the Message Defition Editor.
I have no difficulty trying to enter a normal character - it just works. But I actually need to enter line feed. So I expected I just enter <LF>, but (at run time) it treats that as 4 characters.
I have tried Type: string and hexBinary, and various formats for hex, such as x'0A' and variations on that. This is for MRM TDS (fixed length) output, so I could just put the code in the ESQL, but it seems to me that it would be better to put it in the message definition.
Thanks in advance for any help in this matter. |
|
Back to top |
|
 |
kimbert |
Posted: Fri Sep 02, 2011 1:25 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
The 'fixed' and 'default' properties are *logical * properties, and you must enter those values exactly as they would appear in an xsd.
The mnemonics <LF>, <CR> etc are only allowed in *physical* properties - by which I mean properties that describe the input or output bitstream. Examples of physical properties that accept mnemonics are 'Group Indicator', 'Group terminator' and 'Delimiter'.
The value that you need for a line feed in the 'fixed' and 'default' properties is 
 |
|
Back to top |
|
 |
rodmill |
Posted: Fri Sep 02, 2011 2:34 am Post subject: Problem entering fixed (or default) value MRM TDS output |
|
|
Novice
Joined: 01 Feb 2007 Posts: 13
|
Thanks for your answer. I have tried the code 
 but I still get the error. I have tried it with & without the semicolon, and also & #10; but they all give this error:
BIP5436
( MB7BROKER.default ) Data length error:
Element name: '86^eoln'
Element type: 'String'
Expected data length: 1 'Characters'
Actual data length: 6 'Characters'
Data: '
'
While a TDS message was being written, it was found that the data length was inconsistent with the element definition.
I have been assiging the Value (button) Fixed under Logical Properties-Local Element. The physical Properties-TDS-Length is set to 1. If I do change it to the length that it is asking for, I get the actual text out in the output message.
Thanks for your help in this matter, |
|
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
|
|
|
|