The user program implementing the table procedure is issuing a FINISH TASK.
Release : All supported releases.
Component : CA IDMS/DB
The only TASK-level DML verb allowed in an SQL-invoked external routine is COMMIT TASK.
Any others (e.g. FINISH TASK, COMMIT TASK ALL) will cause the session or transaction to end and the LTERM will be lost.
This causes the program check in IDMSHLDB.
Suggested action is to use a normal FINISH for the network database rununit and a COMMIT TASK for freeing of scratch and queue related locks.