Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us