Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
Returns the QAnywhere address of the message.
The QAnywhere message address as VARCHAR(128). QAnywhere message addresses take the form id\queue-name.
You can read this header after a message is received and until a rollback or commit occurs; after that you cannot read it.
In the following example, a message is received and its address is output to the database server messages window:
declare @msgid varchar(128);
declare @addr varchar(128);
set @msgid = ml_qa_getmessage( 'myaddress' );
set @addr = ml_qa_getaddress( @msgid );
message 'message to address ' || @addr || ' received';