Martin Yergeau Posted April 13, 2021 Share Posted April 13, 2021 Hi community, When using &&KILL_RPC to stopped a RC schedule, the schedules status become FAILURE (LASTEXSTATUS is set to FAILURE by RC). From a pre-procedure, I have to test some conditions to decide if the task must run or not. If not, then I set &&KILL_RPC to Y to stop the execution. But the problem is that the schedule Last Job Status become Error (BOTSCHED.LASTEXSTATUS = FAILURE). I know about Alerts, but in this case, seems to be too complex to use Alerts because the conditions are determined by common fex that use parameters passed by the schedule itself. Is there another way to stopped the schedule (such as using &&KILL_RPC) but without a FAILURE status I could probably be able to use Alerts, but since all has already been done using &&KILL_RPC, I didnt want to reinvent the wheel. Thanks Link to comment Share on other sites More sharing options...
David Beagan Posted April 13, 2021 Share Posted April 13, 2021 What if you SET XRETRIEVAL=OFF to bail out of the schedule Im thinking you would get a no report to distribute situation. Link to comment Share on other sites More sharing options...
Martin Yergeau Posted April 13, 2021 Author Share Posted April 13, 2021 As far as I know, this will not bail out the schedule. It will just not perform data retrieval but all code will be executed. The goal is not to execute the code but stop the schedule. Link to comment Share on other sites More sharing options...
Charles Morris 2 Posted April 13, 2021 Share Posted April 13, 2021 technically thats correct - the pre-process killed the schedule so the scheduled task failed. However, I would have thought that someone in programming would have thought this through and set an alternate flag, something like killed or aborted. Id report it and ask them to come up with a new status Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now