|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message number in trace node |
« View previous topic :: View next topic » |
Author |
Message
|
shalabh1976 |
Posted: Mon Dec 20, 2004 3:56 am Post subject: Message number in trace node |
|
|
 Partisan
Joined: 18 Jul 2002 Posts: 381 Location: Gurgaon, India
|
I want to see the message number specified in the trace node in my output trace file. Is this possible and if yes, what is the significance of the same ? _________________ Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate |
|
Back to top |
|
 |
wolstek |
Posted: Mon Dec 20, 2004 9:05 am Post subject: |
|
|
Acolyte
Joined: 25 Jun 2001 Posts: 52 Location: Bristol, UK
|
You can put any value from the current message or tree by placing it in the trace node with syntax ${...}
So if assuming you mean the MQMD msgid then you would need something like the following in your trace node
Code: |
Message Identifier = ${Root.MQMD.MsgId}
|
This will simply put the line above into the output file replacing the ${..} withi the actual value |
|
Back to top |
|
 |
JT |
Posted: Mon Dec 20, 2004 9:32 am Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
Quote: |
I want to see the message number specified in the trace node in my output trace file. |
When you refer to the message number, I assume you mean the configurable parameter in the Trace node and not the message identifier in the message header, as noted in the previous post. The default message number is 3051, so if you wanted to see that valued produced in your output trace file, you would add any text that displays the value into the Pattern section of the trace node:
Code: |
Message number = 3051 |
I don't believe there is a variable that you can use as a pattern, to reference the value entered in the Message Number textbox of the Trace node. However, you could set an Environment variable prior to the Trace node, say in a Compute node, and then reference that element in the Pattern section (though, I don't believe you would be able to use that Environment variable in the Message Number textbox).
Code: |
Message number = ${Environment.Variable.MessageNumber} |
|
|
Back to top |
|
 |
shalabh1976 |
Posted: Thu Dec 23, 2004 10:31 pm Post subject: |
|
|
 Partisan
Joined: 18 Jul 2002 Posts: 381 Location: Gurgaon, India
|
I still did not understand the significance of message number in this node.
Also it does not make sense to set it in a compute node prior to the flow coming to the trace node and then resetting it there once more. I can specify any different value for all I care but this value will not be displayed. _________________ Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate |
|
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
|
|
|
|