[CR #426411] When you execute msgconsume within a transaction in Adaptive Server version 15.0 ESD #2, Adaptive Server aborts your command and terminates your session if the following conditions apply:
You set "transaction messaging" to full and @@servername is NULL.
You pass a invalid option name and value to msgconsume.
Workaround:
Set a valid servername for case 1.
Pass a valid option name and value to msgconsume for case 2.