Messages and other data types

A new type of the script variable is introduced to work with message queues: Message. There are ten messages available to the user; the range is from Message-1 to Message-10. Using the Assign command, you can manipulate messages and copy a message body to and from other script variables, or shared memory. Because message data is contained in memory and it disappears once the script is terminated, be sure to save messages to a file for audit purposes.

When copying messages to the script variable of the type “parameter,” remember that messages may not necessarily contain only text data. For example, messages with the MQRFH header (MQSI messages) usually contain binary data. Copying binary message to the text variable may lead to unpredictable results.