Author |
Message
|
MQDummy |
Posted: Sun Jun 23, 2002 6:55 pm Post subject: Obtaining the value of a variable |
|
|
Novice
Joined: 11 Jun 2002 Posts: 23
|
Hi,
For eg. if i have a variable
DECLARE a INT;
SET a = Cardinality(InputRoot.MRM.Lines[]);
How do i 'see' the value of a during runtime for debugging?
I've tried debugger mode but it only allows displaying before and after nodes but not what is going on within a node?
Thanks!! |
|
Back to top |
|
 |
kirani |
Posted: Sun Jun 23, 2002 7:20 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
You can get the value by attaching a trace node, which writes data to a file. Following code will be used to print value of a into file.
${cardinality(Root.MRM.Lines[])} _________________ 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 |
|
 |
Miriam Kaestner |
Posted: Sun Jun 23, 2002 11:21 pm Post subject: |
|
|
Centurion
Joined: 26 Jun 2001 Posts: 103 Location: IBM IT Education Services, Germany
|
If you run a USERTRACE with DEBUG option on your message flow, the resulting file will show all ESQL statements, even with intermediate results. |
|
Back to top |
|
 |
MQDummy |
Posted: Mon Jun 24, 2002 4:05 am Post subject: |
|
|
Novice
Joined: 11 Jun 2002 Posts: 23
|
Thanks!  |
|
Back to top |
|
 |
MQDummy |
Posted: Mon Jun 24, 2002 4:53 pm Post subject: |
|
|
Novice
Joined: 11 Jun 2002 Posts: 23
|
Hi,
I want to try USERTRACE with DEBUG option, should i use the trace node and select usertrace? How do i set the debug option?
best regards |
|
Back to top |
|
 |
kirani |
Posted: Mon Jun 24, 2002 5:07 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
You can either use Trace node or USERTRACE option to get the value.
To set USERTRACE ON on your message flow,
1. Goto Operations Pannel.
2. Do a refresh of view by clicking on refresh button.
3. Right click on your message flows and select UserTrace->Debug. You will get standard dialog box.
4. Switch to log view and see if your request is processed successfully or not.
5. Come back to Operations view and press refresh button again. Now you should see "blue man" next to your message flow! This indicates that user trace on your message flow is now turned on.
6. Run your message flow by sending a message on your input queue.
7. After message is processed run command mqsireadlog and mqsiformatlog to extract user trace in a text file. Please refer to Administration Guide for more details on these commands.
Good luck! _________________ 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 |
|
 |
|