|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
how to insert non-printable characters in message |
« View previous topic :: View next topic » |
Author |
Message
|
upsscs1 |
Posted: Wed Jul 02, 2003 11:51 am Post subject: how to insert non-printable characters in message |
|
|
Newbie
Joined: 02 Jul 2003 Posts: 3
|
I need to insert a carriage return line feed into the message data from
the compute node.
set temp = InputRoot.XML.Message.Body.REPORTDETAIL[i] || <CR><LF>
what do I use in place of the <CR><LF>? |
|
Back to top |
|
 |
shalabh1976 |
Posted: Wed Jul 02, 2003 8:45 pm Post subject: |
|
|
 Partisan
Joined: 18 Jul 2002 Posts: 381 Location: Gurgaon, India
|
<CR> maps to X'0D'
<LF> maps to X'0A'
So you can write :
Code: |
set temp = InputRoot.XML.Message.Body.REPORTDETAIL[i] ||
X'0D0A' |
|
|
Back to top |
|
 |
kirani |
Posted: Wed Jul 02, 2003 10:18 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
In above code you are missing CAST function.
Code: |
CHAR CRLF CAST (X'0D0A' AS CHAR CCSID InputRoot.Properties.CodedCharSetId);
set temp = InputRoot.XML.Message.Body.REPORTDETAIL[i] || CRLF;
|
_________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jul 03, 2003 7:09 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Or you can cheat, and use a CRLF enclosed inside single quotes.
Code: |
set temp = InputRoot.XML.Message.Body.REPORTDETAIL[i] ||'
'; |
.
But that only works for CRLF, and the Cast with hex values works for any non-printable character. |
|
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
|
|
|
|