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 » Getting rid of single-quote in the trace node

Post new topic  Reply to topic
 Getting rid of single-quote in the trace node « View previous topic :: View next topic » 
Author Message
asalema
PostPosted: Thu May 20, 2004 2:24 pm    Post subject: Getting rid of single-quote in the trace node Reply with quote

Apprentice

Joined: 05 May 2003
Posts: 35

Hi All,
I am trying to enhance an existing application that uses trace nodes everywhere for logging to be NLS (national language support) compliant. We had logging info like
========================================
Command recieved:
Current Time ${CURRENT_TIMESTAMP}
Commad .....

That logs info in the log file as follows

==============================================
Command received:
Submission time: 2004-05-19 14:28:46.217
Command:
-----------------------------------------------------------------------------------
'command here'
-----------------------------------------------------------------------------------

which is good

Now, I changed the trace file to take the displayed messages from a properties file for NLS as follows:

==============================================
${Environment.Properties."I-00006"}
${Environment.Properties."I-00007"} ${CURRENT_TIMESTAMP}
${Environment.Properties."I-00008"}
-----------------------------------------------------------------------------------
${LocalEnvironment.Variables.XMLMessageText}
-----------------------------------------------------------------------------------


That displays the following in the log file
===============================================
'Command received:'
'Submission time:' 2004-05-20 13:02:05.886
'Command:'
-----------------------------------------------------------------------------------
'command here'
-----------------------------------------------------------------------------------

The question simply is
Is there a way to get rid of the single-quotes around the displayed messages? something like CAST the info. messages somehow to get rid of these single quotes floating around?.

Regards,
Back to top
View user's profile Send private message
JT
PostPosted: Thu May 20, 2004 4:35 pm    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

The TRIM command should suffice. Don't hold me to it, but should be something like:
Code:
${TRIM(''' Environment.Properties."I-00006")}
Back to top
View user's profile Send private message
asalema
PostPosted: Thu May 20, 2004 6:17 pm    Post subject: Getting rid of Single-quote in the trace node Reply with quote

Apprentice

Joined: 05 May 2003
Posts: 35

Thx, surprisingly, that worked fine. The correct syntax is
${TRIM('''' FROM Environment.Properties."I-00006")}
Thx
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 » Getting rid of single-quote in the trace node
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.