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 

How to capture and handle Pl1 error

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
danm
Intermediate


Joined: 29 Jun 2004
Posts: 170
Topics: 73

PostPosted: Tue Sep 08, 2009 10:23 am    Post subject: How to capture and handle Pl1 error Reply with quote

In REXX, I checks the return code (RC) from EXECIO for OPEN, DISKR and DISKW etc. to make sure the command is executed successfully. I look into both Pl1 Programmer Guide and Language Reference, the examples only shows OPEN, READ, WRITE and CLOSE without any error checking. How can I be sure OPEN, READ, WRITE are executed successfully in PL1?
Back to top
View user's profile Send private message
anbesivam
Beginner


Joined: 09 Aug 2006
Posts: 66
Topics: 14

PostPosted: Tue Sep 08, 2009 12:32 pm    Post subject: Reply with quote

Hello Danm,

PL1 works with exception conditions. In case of any problem with file attributes and data set characteristics, the UNDEFINEDFILE condition will be raised. So, I believe in your case, you can check ON UNDEFINEDFILE condition.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming 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