Posted: Thu Jul 24, 2008 11:19 am Post subject: Adding new line character in a string?.
Novice
Joined: 08 May 2008 Posts: 18
I would like to send the source queue name and the a control number that was in error(this is part of the input message) in the body of an e-mail. I was able to figure how to do this but cannot break down into two lines. How do I do it in ESQL.
For example the output messagelook like this.
TEST.FROMOE.TOMSGBRK.ORDER.CANCEL 5009231
I would like to split them into two lines in the message bod.y(i.e add a carraige return).
TEST.FROMOE.TOMSGBRK.ORDER.CANCEL
5009231
Here is my current code:
SET OutputRoot.XMLNSC.Email.Body = InputRoot.MQMD.SourceQueue || ' ' ||
CAST(InputRoot.MRM.TG2_OPS_CONTRL_NUM AS CHARACTER);
Thanks.
I cannot create any elements underneath Body as I am using an XSD that should conform to what our SendEmail message flow uses. What ever text needs to go out should be in the Body.
An XML element is can contain any string which is composed of valid XML characters. A linefeed character is a valid XML character. If you put two linefeeds together, an XML processor is supposed to 'normallze' them to a single linefeed.
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