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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm


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