Posted: Tue Sep 08, 2009 10:23 am Post subject: How to capture and handle Pl1 error
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?
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.
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