PRE_REMOVE IO Issue

Started by Tim Plotner, November 10, 2020, 05:15:58 PM

Previous topic - Next topic

Tim Plotner

I am trying to intercept a REMOVE and prevent it under certain circumstance.
I have an IO proc defined.  I hit the PRE_REMOVE: block.
I decide that I want to disallow the REMOVE.
I have tried: EXIT 0, EXIT 61, ESCAPE 61, and several other values.

In each case, I get an error generated.  And end up aborting the process.  When I go back in, the record was in fact removed.

Any ideas on how to deal with this?  I am on PxPlus 15.1.

Thanks!

Mike King

You might try a RETURN 1 to indicate that the remove was successful but that will by-pass the actual remove.

Generating an error is likely going to be problematic.
Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com