If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Debugging Stored Procedures in a batch environment

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-07-09, 11:47
bvdev bvdev is offline
Registered User
 
Join Date: Jul 2009
Posts: 3
Question Debugging Stored Procedures in a batch environment

Please help....

Is it possible to use "xpediter" to debug Stored Procedures in a batch environment (calling from a JCL)? If so what are the steps involved?

What are the other ways of debugging a Stored Procedure in a batch environment?

Are we allowed to code Display Statements in a stored procedure? My guess is... NO... since it runs in a DB2 address space!

Please help!!!

Regards
BV
Reply With Quote
  #2 (permalink)  
Old 07-07-09, 12:15
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
IIRC, you can. It is been 10 years since I did a COBOL Stored proc on the mainframe.

You will get the output in SYSOUT of DSNSPAS or whatever address space the stored proc runs.

I assume you are talking about a COBOL Stored Procedure

Quote:
Originally Posted by bvdev
Are we allowed to code Display Statements in a stored procedure? My guess is... NO... since it runs in a DB2 address space!

__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 07-07-09, 12:27
bvdev bvdev is offline
Registered User
 
Join Date: Jul 2009
Posts: 3
Exclamation Thanks for the quick response!

Yes, the SP is written in COBOL. You mean the DISPLAY will be in the SYSOUT of the DB2 job of the specific subsystem where the Stored Procedure is executed or the SYSOUT of the JCL from where the calling program is executed?

Can it be tested using "xpediter"?

Thanks & Regards
BV
Reply With Quote
  #4 (permalink)  
Old 07-07-09, 12:31
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Quote:
Originally Posted by bvdev
Yes, the SP is written in COBOL. You mean the DISPLAY will be in the SYSOUT of the DB2 job of the specific subsystem where the Stored Procedure is executed or the SYSOUT of the JCL from where the calling program is executed?
SYSOUT of the stored procedure address space , NOT the calling program

Quote:
Originally Posted by bvdev
Can it be tested using "xpediter"?
To be honest, I don't have clue ... sorry ..Someone here will have the answer
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 07-08-09, 04:35
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Hardly any help: It can be done, I did it. But... it is a few years ago and I am no longer hired by that client.
You'll need help from your sysprogs to set it up. If they say it cannot be done..... wel maybe you need better sysprogs or get them to like you better
Reply With Quote
  #6 (permalink)  
Old 07-08-09, 10:14
bvdev bvdev is offline
Registered User
 
Join Date: Jul 2009
Posts: 3
Thanks, I will check this out!

If not xpediter... how else can you debug a Stored Procedure?

Regards
BV
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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