The record variable that the property identifies is based on a BasicRecord.
EGL programs call the WebSphere MQ MQOPEN and MQCLOSE functions to open and close queues that are associated with message queue records. A four-byte binary options field is one of the parameters on the MQOPEN and MQCLOSE calls. If you do not specify the openOptionsRecord property, EGL automatically builds a default options parameter.
The following table shows the WebSphere MQ constants that EGL uses as default values for the MQOPEN and MQCLOSE calls.
| Conditions | Value |
|---|---|
| Open for add statement | MQOO_OUTPUT + MQOO_FAIL_IF_QUIESCING |
| Open for exclusive use for a get next statement | MQOO_INPUT_EXCLUSIVE + MQOO_FAIL_IF_QUIESCING |
| Open for shared use for a get next statement | MQOO_INPUT_SHARED + MQOO_FAIL_IF_QUIESCING |
| Close | MQCO_NONE |
You can use the queueDescriptorRecord property to specify MQOO or your own variable based on MQOO. Code the program to initialize and set fields in the MQMD record variable before accessing the queue. EGL uses your MQOO structure instead of the default structure.
For more information about options records, see Options records for MQRecords. For a complete list of WebSphere MQ constants (such as MQCO_NONE), refer to your WebSphere MQ documentation.