WebSphere MQ Call Routines |
Syntax | |
Arguments | |
Example |
Syntax |
CALL MQOPEN(hConn, hod, options, hObj, compCode, reason <, compCode1, reason1, compCode2, reason2, ...>); |
Numeric, input
Specifies the WebSphere MQ connection handle that is obtained from a previous MQCONN function call.
Numeric, input
Specifies the Base SAS internal object descriptor handle that is obtained from a previous MQOD function call.
Character, input
Specifies a string of open options, each separated by a comma. The following open options are valid:
Open to get messages using queue-defined default.
Open to get messages with shared access.
Open to get messages with exclusive access.
Open to browse messages.
Open to put messages.
Open to query object attributes.
Open to set object attributes.
Save context when message is received.
Allow identity context to be passed.
Allow all context to be passed.
Allow identity context to be set.
Allow all context to be set.
Validate with specified user identifier.
Fail if QMgr is quiescing.
The following options apply only when opening a cluster queue:
Use default binding for queue.
Do not bind to a specific destination.
Bind handle to destination when queue is opened.
Numeric, output
Returns the WebSphere MQ handle that will be used in subsequent message queuing calls to identify the object that is being accessed (a queue, a process definition, or queue manager).
Numeric, output
Returns the WebSphere MQ completion code. This parameter can be used to determine whether an error occurred during the execution of this routine. If an error occurred, then the compCode parameter will be nonzero, and the reason parameter will be set to the appropriate reason code.
Numeric, output
Returns the WebSphere MQ reason code that qualifies compCode.
Note: A reason code of -1 reflects a Base SAS internal error, not a WebSphere MQ error. To obtain a textual description of a failure (either Base SAS or WebSphere MQ), use the SYSMSG() Base SAS function call.
Numeric, output
The compCodex and reasonx are an optional series of paired values that can be used when opening a distribution list in order to discern failures for specific queues within the distribution list. These parameters support features of WebSphere MQ Version 5.1 and later.
Example |
This example opens a queue for input and output.
options="INPUT_SHARED,OUTPUT"; hObj=0; compCode=0; reason=0; CALL MQOPEN(hConn, hod, options, hObj, compCode, reason);
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.