View previous topic :: View next topic
|
Author |
Message |
sreepriya
New User
Joined: 19 May 2005 Posts: 4
|
|
|
|
Hi all,
Can i know how to debug a rexx program ? If possible explain with steps. If already answered pls provide the link.
Thanks in advance,
Priya |
|
Back to top |
|
 |
Prandip
New User
Joined: 04 Mar 2005 Posts: 84 Location: In my tiny cubicle ...
|
|
|
|
Use the TRACE instruction. There are a few different parameters, depending on what kind of trace you require. Check the REXX Reference Manual for the list of parameters. My personal favorite is TRACE I (to activate an Intermediate trace) followed by TRACE N (to disable the trace). |
|
Back to top |
|
 |
MGIndaco
Active User

Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
Back to top |
|
 |
MGIndaco
Active User

Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
Back to top |
|
 |
new2cobol
New User

Joined: 04 Jan 2006 Posts: 77 Location: Bangalore
|
|
|
|
I would suggest the TRACE R option if you are not accessing a lot of values. |
|
Back to top |
|
 |
amitava Warnings : 1 Active User

Joined: 30 Oct 2005 Posts: 186 Location: India
|
|
|
|
Ya TRACE is the best option to debug a REXX routine. But if your program is too long, you may lose your control over the program. Then I think you can use -
1. The postions where you are thinking a faulty position, insert a SAY statement.
2. If any wrong responses are coming then you can also insert "SAY rc zerrlm" - statement. This will tell you the return code of the previous statement executed and also the reason of the error (in words). |
|
Back to top |
|
 |
|