dbTalk Databases Forums  

Stored procedures debugging.

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Stored procedures debugging. in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
db2sysc@yahoo.com
 
Posts: n/a

Default Stored procedures debugging. - 05-02-2005 , 07:25 AM






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?


Reply With Quote
  #2  
Old   
Knut Stolze
 
Posts: n/a

Default Re: Stored procedures debugging. - 05-02-2005 , 07:43 AM






db2sysc (AT) yahoo (DOT) com wrote:

Quote:
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?
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


Reply With Quote
  #3  
Old   
Serge Rielau
 
Posts: n/a

Default Re: Stored procedures debugging. - 05-02-2005 , 07:43 AM



db2sysc (AT) yahoo (DOT) com wrote:
Quote:
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?

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


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.