MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CONTROL ERROS RETURN & CONTROL ERROS CANCEL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Susan_Yang
Beginner


Joined: 13 Feb 2006
Posts: 9
Topics: 7

PostPosted: Tue Mar 18, 2008 10:29 pm    Post subject: CONTROL ERROS RETURN & CONTROL ERROS CANCEL Reply with quote

Can anybody explain in Rexx, when shall we use CONTROL ERROS RETURN and when shall we use CONTROL ERROS CANCEL to handle errors? Thanks Very Happy
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed Mar 19, 2008 12:51 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group