MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to Debug REXX?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
pradeepg
Beginner


Joined: 06 Jan 2003
Posts: 25
Topics: 12
Location: Columbus, OH

PostPosted: Mon Nov 29, 2004 3:23 pm    Post subject: How to Debug REXX? Reply with quote

Hi,
I am pretty new to REXX. I am wondering is there any way we can do line by line debugging of REXX procs. Some thing like how we do cobol program debugging in XPEDITOR or IBM DEBUG tool. I feel really time consuming and difficult to trace the syntax problems while executing the REXX programs.

Please guide me in right direction.

Thanks,
Pradeep
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Jeba
Beginner


Joined: 02 Dec 2002
Posts: 48
Topics: 9
Location: Columbus, GA

PostPosted: Mon Nov 29, 2004 3:40 pm    Post subject: Reply with quote

Pradeepg,

Please see the following link
http://www.mvsforums.com/helpboards/viewtopic.php?t=1157&highlight=trace
_________________
Thanks,
Jeba
(Known is a drop Unknown is an ocean)
Back to top
View user's profile Send private message Send e-mail
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Mon Nov 29, 2004 4:03 pm    Post subject: Reply with quote

If you use the ISPF editor to enter your REXX code, then you should rarely incur any syntactical errors, since the editor highlights syntax errors as you type, much the same way as it does for COBOL and JCL source statements.

Logical and run-time errors are, of course, a different issue, which the use of the TRACE statement should help to identify.
Back to top
View user's profile Send private message
stefan
Beginner


Joined: 20 Nov 2003
Posts: 41
Topics: 2
Location: Germany

PostPosted: Tue Nov 30, 2004 2:34 am    Post subject: Reply with quote

An exciting alternative to changing the code by insering trace statements is to issue a "TSO EXECUTIL TS" before starting your rexx program. This causes any subsequently running rexx program to fall in trace mode. After debugging you should reset your environment by issuing "TSO EXECUTIL TE". Have a look in the manuals for further options, like EXECUTIL HT or HI.

The benfit of this procedure is, that you don't have to alter the code, and that you are able to trace all rexx programs contained in a call chain. The trace condition can be disabled for each program individually by entering "trace off" when the first line of this program is displayed.

The benfit of using the TRACE statement is, that you can restrict the effect of tracing to that part of coding which is suspicious to you.

Hope this helps.

Stefan
Back to top
View user's profile Send private message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Nov 30, 2004 2:49 am    Post subject: Reply with quote

Stefan,

Quote:

An exciting alternative to changing the code by insering trace statements is to issue a "TSO EXECUTIL TS"


Yes, It really is interesting. I've never heard of this!!!!. Thanks for the info.

Phantom
Back to top
View user's profile Send private message
infoman123
Beginner


Joined: 02 Nov 2004
Posts: 57
Topics: 20

PostPosted: Fri Dec 03, 2004 5:23 am    Post subject: Reply with quote

pradeep,

the best way to learn rexx is take an existing code and put a trace command in the begining and execute the rexx.You can easily learn the logic as well as get a good knwledge in the syntax,keywords etc...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group