These global variables provide application programs with access to message information from the most recent message sent or received. They are discussed in Chapter 4, “SQL Reference.”
Contains correlation from last message sent or read.
@@msgcorrelation contains the correlationId from the the most recent message sent or received.
Contains message header information from the most recent message received. This variable’s format is in XML. For details about this format, see “<msgheader> and <msgproperties> documents”.
Functions that set @@msgheader include msgrecv and msgconsume.
Contains the ID of the most recent message sent or received.
Functions that set the variable are: msgsend, msgpublish, msgrecv, msgconsume.
Contains message properties information from the most recent message received. This variable’s format is in XML. For details about this format, see “<msgheader> and <msgproperties> documents”.
The @@msgproperties are the user properties from the message.
Functions that set the variable are: msgrecv, msgconsume
Contains the name (provider_url, queue_name, topic_name, user_name) of the topic or queue name used to receive the next message. Can be a permanent or temporary destination.
Functions that set the variable is: msgsend
Contains the schema of the message or a null value. Contains the value of the Adaptive Server property ase_message_body_schema. For more information, see the description of the schema option in msgsend and msgpublish.
Functions that set the variable are: msgsend, msgpublish.
Contains either the integer error code of the service provider exception, or zero, if the last operation did not raise an exception.
Functions that set the variable are: msgsend, msgpublish, msgrecv, msgconsume.
Contains either the error message of the service provider exception, or zero, if the last msgsend, msgpublish, msgrecv, or msgconsume raised an exception, or an empty string.
Functions that set the variable are: msgsend, msgrecv.
Contains the timestamp included in the message last sent.
Functions that set the variable are: msgsend, msgpublish.
These global variables are char datatypes, of length 16384.
You can remove trailing blanks using rtrim.
@@msgreplytoinfo contains reply destination information from the message header. It is formatted as an endpoint, as described in msgsend.
The password is not included in the value of @@msgreplytoinfo. To use this destination as an argument in a subsequent msgsend or msgrecv call, add:
password=<your password>
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |