On 2018-10-26 1:18 PM, Birgitta Hauser wrote:

if you add the (e) extender, you still can trap the error with the monitor
group?!
monitor;
reade(e) key file;
ok = *on;
on-error 1218: // record lock
// try again
endmon;

I thought you need to check the %Status if the E-Extender is set.
ReadE(e) Key File;
If %Status = '1218'; // Record Lock
//Error lock - Do something
EndIf;

Oops, sorry, the (e) extender should not be there on the READE. I originally thought of just using (e), but then I realized that would catch all errors, which would be a larger change than just handing the lock-error. But when I changed to use MONITOR, I forgot to remove the (e).

(You're right, you do need to check %status if you use the E-extender.)


This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].