Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to debug a rexx program ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
sreepriya

New User


Joined: 19 May 2005
Posts: 4

PostPosted: Thu May 19, 2005 4:13 pm    Post subject: How to debug a rexx program ?
Reply with quote

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
View user's profile Send private message

Prandip

New User


Joined: 04 Mar 2005
Posts: 85
Location: In my tiny cubicle ...

PostPosted: Thu May 19, 2005 5:37 pm    Post subject: Re: How to debug a rexx program ?
Reply with quote

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
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu May 19, 2005 8:13 pm    Post subject:
Reply with quote

These are the Trace option with explanation:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4A350/3.23?DT=20040623084642
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu May 19, 2005 8:18 pm    Post subject:
Reply with quote

To have a better view of Rexx debug aids see also:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4A350/11.0?DT=20040623084642#HDRDEBUG
Back to top
View user's profile Send private message
new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Wed Feb 01, 2006 10:22 pm    Post subject:
Reply with quote

I would suggest the TRACE R option if you are not accessing a lot of values.
Back to top
View user's profile Send private message
amitava
Warnings : 1

Active User


Joined: 30 Oct 2005
Posts: 186
Location: India

PostPosted: Thu Feb 02, 2006 9:41 am    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us