Possible cause of SEA1 abend
search cancel

Possible cause of SEA1 abend

book

Article ID: 367933

calendar_today

Updated On:

Products

Dispatch Output Mgmt

Issue/Introduction

Observed the following message....
DD.MM.YY SXXXXXXX  DSB7 DC980227 V1 RPI1 CADSXXXX Recovering From Database Deadlock

Which is normal and means 2 reports, of the same report/jobname, are processed by different RPI tasks; deadlocking trying to access report processing option definition data. No need to be concerned as the task recovers and moves on to try again until it obtains good access to the data. 

Then at the end of the joblog there is....

DSB7 DC970301 V1 Abend Completion Code is:   SEA1

Which has occurred because the main task Dispatch was cancelled while the MSG sub task was still processing. 
This is normal outcome when you cancel the main Dispatch task with an active subtask running. 




Resolution

The customer's automation had a 3 minute delay between issuing a Stopcads command for Dispatch, and if Dispatch was still up after 3 minutes, it issued a cancel command.
Needed to add a bigger delay to allow Dispatch to finish doing all it needs to, so it can shutdown gracefully.