|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Getting rid of single-quote in the trace node |
« View previous topic :: View next topic » |
Author |
Message
|
asalema |
Posted: Thu May 20, 2004 2:24 pm Post subject: Getting rid of single-quote in the trace node |
|
|
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 |
|
 |
JT |
Posted: Thu May 20, 2004 4:35 pm Post subject: |
|
|
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 |
|
 |
asalema |
Posted: Thu May 20, 2004 6:17 pm Post subject: Getting rid of Single-quote in the trace node |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|