swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax     Other Library Functions  
function  

mq-disconnect

 
 

Library: MQSeries access (OMMQI) legacy
Include: ommqi.xin

Declaration

define external function mq-disconnect
    from     value    mq-connection    connection

Argument definitions

connection
is a connected mq-connection object.


Purpose

Use mq-disconnect to disconnect an mq-connection object from its queue manager.

Requirements

You must include the following line at the beginning of your OmniMark program:

  include "ommqi.xin"

The connection must be connected (else external exception OMMQI0010).

Usage Notes

This function corresponds to the MQDISC function in the MQSeries API.

The CompCode and Reason parameters of MQDISC are integrated into the OMMQI error handling.

This function is implicitly called when an mq-connection variable goes out of scope.

Example

Disconnect from a queue manager

  include "ommqi.xin"
  
  process
     local mq-connection a-connection
  
     ; Connect to queue manager QM_desthost
     set a-connection to mq-connect to "QM_desthost"
  
     ; Perform some operations
     ;...
  
     ; Disconnect from queue manager
     mq-disconnect a-connection

    Related Syntax
   mq-connectx
   mq-connect
 
  Other Library Functions
   mq-backout
   mq-close
   mq-commit
   mq-connect
   mq-connection
   mq-connectx
   mq-disconnect
   mq-get
   mq-get-entire-return-status
   mq-get-function-status
   mq-get-logging-level
   mq-get-throw-on-warnings
   mq-inquire
   mq-inquire-names
   mq-object
   mq-open
   mq-put
   mq-put1message
   mq-set
   mq-set-logging-level
   mq-set-throw-on-warnings
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:27:39 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.