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 » how to insert non-printable characters in message

Post new topic  Reply to topic
 how to insert non-printable characters in message « View previous topic :: View next topic » 
Author Message
upsscs1
PostPosted: Wed Jul 02, 2003 11:51 am    Post subject: how to insert non-printable characters in message Reply with quote

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
View user's profile Send private message
shalabh1976
PostPosted: Wed Jul 02, 2003 8:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger MSN Messenger
kirani
PostPosted: Wed Jul 02, 2003 10:18 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Thu Jul 03, 2003 7:09 am    Post subject: Reply with quote

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
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 » how to insert non-printable characters in message
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.