View previous topic :: View next topic |
Author |
Message |
Susan_Yang Beginner
Joined: 13 Feb 2006 Posts: 9 Topics: 7
|
Posted: Tue Mar 18, 2008 10:29 pm Post subject: CONTROL ERROS RETURN & CONTROL ERROS CANCEL |
|
|
Can anybody explain in Rexx, when shall we use CONTROL ERROS RETURN and when shall we use CONTROL ERROS CANCEL to handle errors? Thanks  |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Wed Mar 19, 2008 12:51 am Post subject: |
|
|
if you want ISPF to return a return code when a service gets a return code greater than 8, use CONTROL ERRORS RETURN. Use CONTROL ERRORS CANCEL when you want ISPF to terminate the application when a service returns a return code greater than 8. Good programming practice would have you handle the return code, but for debugging, it is often helpful to let ISPF terminate the application with an error message box.
(check the doc. I can't remember if it is >8 or >=8 ) _________________ New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html. |
|
Back to top |
|
 |
|
|