Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 10:39 AM
db2sysc@yahoo.com
Guest
 
Posts: n/a
Default Stored procedures debugging.

All:

I want to debug stored procedures in V8.2 and specifically see the
values of my dynamic constructs.

set v_sql ='SELECT COUNT(*) FROM DB2ADMIN. ' || v_table_name;

How do I see value of v_sql during run time?


I tried using SQL DEBUGGER, but was not succcessful. Any pointers?

  #2  
Old November 12th, 2005, 10:39 AM
Knut Stolze
Guest
 
Posts: n/a
Default Re: Stored procedures debugging.

db2sysc@yahoo.com wrote:
[color=blue]
> All:
>
> I want to debug stored procedures in V8.2 and specifically see the
> values of my dynamic constructs.
>
> set v_sql ='SELECT COUNT(*) FROM DB2ADMIN. ' || v_table_name;
>
> How do I see value of v_sql during run time?
>
>
> I tried using SQL DEBUGGER, but was not succcessful. Any pointers?[/color]

An idea would be to use the technique described here:
http://www-128.ibm.com/developerwork...0302izuha.html

--
Knut Stolze
Information Integration
IBM Germany / University of Jena
  #3  
Old November 12th, 2005, 10:39 AM
Serge Rielau
Guest
 
Posts: n/a
Default Re: Stored procedures debugging.

db2sysc@yahoo.com wrote:[color=blue]
> All:
>
> I want to debug stored procedures in V8.2 and specifically see the
> values of my dynamic constructs.
>
> set v_sql ='SELECT COUNT(*) FROM DB2ADMIN. ' || v_table_name;
>
> How do I see value of v_sql during run time?
>
>
> I tried using SQL DEBUGGER, but was not succcessful. Any pointers?
>[/color]
I find teh most convenient way to do debugging to have a declared global
temporary table with NOT LOGGED ON ROLLABCK PRESERVE ROWS ON COMMIT
PRESERVE ROWS.
Then I insert debugging information into it and query teh temp at leisure.

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,174 network members.