We have no logic for that, but you can use a package exit at the before-cast or mid-cast point.
The exit can use the 'request for data' mechanism to retrieve the package SCL statements, parse them to identify the SET STOPRC statement, and abort the CAST if it is not correct.
Not sure how your site determines whether a package is a MOVE or a DELETE one. Hopefully you use something that is present in the package header, like the package ID or description. If so. the exit could make its decision when finding the SET STOPRC statement.
However, if a package is a MOVE or DELETE one depending on the actions it contains, your exit needs to examine all the SCL statements (or maybe request for the package action records) and keep information between exit calls.
Best rrgards
Eduard Penafiel
CA-Endevor support