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 » Carriage Return in ESQL

Post new topic  Reply to topic
 Carriage Return in ESQL « View previous topic :: View next topic » 
Author Message
pvemuri
PostPosted: Mon Mar 28, 2005 11:40 am    Post subject: Carriage Return in ESQL Reply with quote

Voyager

Joined: 05 Jan 2004
Posts: 83
Location: CA, USA

Hello,
Can any one help me how to append a carriage return at the end of a string using ESQL.
Thanks,
pvemuri.
Back to top
View user's profile Send private message Send e-mail
waugh
PostPosted: Mon Mar 28, 2005 12:12 pm    Post subject: Reply with quote

Master

Joined: 19 Feb 2004
Posts: 225

cast it to BLOB, add X'0D & X'0A at the end.

we had to remove carriage returns, so i did a BLOB conversion and removed those hex characters from message, then used a RCD node to convert it back to XML.

hope this helps
Back to top
View user's profile Send private message
waugh
PostPosted: Mon Mar 28, 2005 12:24 pm    Post subject: Reply with quote

Master

Joined: 19 Feb 2004
Posts: 225

SET CRSTR = CAST(x'0D' AS CHAR CCSID InputRoot.MQMD.CodedCharSetId) ;
SET LFSTR = CAST(x'0A' AS CHAR CCSID InputRoot.MQMD.CodedCharSetId) ;

SET OutputRoot.MRM.{yourfieldname} = InputRoot.MRM.{yourfieldname} || CRSTR || LFSTR;


Last edited by waugh on Tue Mar 29, 2005 11:43 am; edited 1 time in total
Back to top
View user's profile Send private message
EddieA
PostPosted: Mon Mar 28, 2005 12:31 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
cast it to BLOB, add X'0D & X'0A at the end.

Where does he say he want's a Windoze carriage return.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
pvemuri
PostPosted: Wed Mar 30, 2005 7:14 am    Post subject: Reply with quote

Voyager

Joined: 05 Jan 2004
Posts: 83
Location: CA, USA

Eddie,
How does it differ by OS? we usually send it to Mianframes / AIX or Windows.

Thanks for the knowledge,
pvemuri.
Back to top
View user's profile Send private message Send e-mail
EddieA
PostPosted: Wed Mar 30, 2005 9:41 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Windows uses CR + LF.

Unix uses LF.

Mainframe uses ?????

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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 » Carriage Return in ESQL
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.