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 » Obtaining the value of a variable

Post new topic  Reply to topic
 Obtaining the value of a variable « View previous topic :: View next topic » 
Author Message
MQDummy
PostPosted: Sun Jun 23, 2002 6:55 pm    Post subject: Obtaining the value of a variable Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Sun Jun 23, 2002 7:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Miriam Kaestner
PostPosted: Sun Jun 23, 2002 11:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
MQDummy
PostPosted: Mon Jun 24, 2002 4:05 am    Post subject: Reply with quote

Novice

Joined: 11 Jun 2002
Posts: 23

Thanks!
Back to top
View user's profile Send private message
MQDummy
PostPosted: Mon Jun 24, 2002 4:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Mon Jun 24, 2002 5:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Obtaining the value of a variable
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.