View previous topic :: View next topic |
Author |
Message |
pradeepg Beginner

Joined: 06 Jan 2003 Posts: 25 Topics: 12 Location: Columbus, OH
|
Posted: Mon Nov 29, 2004 3:23 pm Post subject: How to Debug REXX? |
|
|
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 |
|
 |
Jeba Beginner

Joined: 02 Dec 2002 Posts: 48 Topics: 9 Location: Columbus, GA
|
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Mon Nov 29, 2004 4:03 pm Post subject: |
|
|
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 |
|
 |
stefan Beginner
Joined: 20 Nov 2003 Posts: 41 Topics: 2 Location: Germany
|
Posted: Tue Nov 30, 2004 2:34 am Post subject: |
|
|
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 |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Tue Nov 30, 2004 2:49 am Post subject: |
|
|
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 |
|
 |
infoman123 Beginner
Joined: 02 Nov 2004 Posts: 57 Topics: 20
|
Posted: Fri Dec 03, 2004 5:23 am Post subject: |
|
|
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 |
|
 |
|
|