delphi7如何调用IBM WebSphere MQ得问题,分数不够可以加(300分)

  • 主题发起人 主题发起人 winsssff
  • 开始时间 开始时间
W

winsssff

Unregistered / Unconfirmed
GUEST, unregistred user!
有那位老大曾作过Delphi+MQ的开发啊,谁能给点例子或者源程序,非常感谢啊,我的1000多分都给都行
 
帮你顶吧
 
算了,没有人回答,自己把找到资料给大家分享一下吧<br>unit CMQPas;<br><br>// **************************************************************************<br>// **************************************************************************<br>// **************************************************************************<br>// MQSeries IBM library ported for Delphi by Dinko Miljak<br>// e-mail: dinmil@flashmail.com<br>// version 0.0.4 2001-05-07<br>// **************************************************************************<br>// **************************************************************************<br>// **************************************************************************<br><br><br>{$A-} &nbsp;// alignment settings - aviod problems between different languages<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IBM MQSeries for Windows NT and Windows 2000 &nbsp; &nbsp; *)<br> &nbsp;(* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(* &nbsp;HEADER NAME: &nbsp; &nbsp;CMQC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(* &nbsp;DESCRIPTION: &nbsp; &nbsp;Declarations for Main MQI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;@START_COPYRIGHT@ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(* &nbsp;Licensed Materials - Property of IBM &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(* &nbsp;0784726, 5639-B43 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(* &nbsp;(C) Copyright IBM Corporation 1993, 2000. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(* &nbsp;Status: Version 5 Release 2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(* &nbsp;@END_COPYRIGHT@ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(* &nbsp;FUNCTION: &nbsp; &nbsp; &nbsp; This file declares the functions, structures, &nbsp; &nbsp;*)<br> &nbsp;(* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;and named constants for the main MQI. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(* &nbsp;PROCESSOR: &nbsp; &nbsp; &nbsp;C &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br>interface<br><br>uses SysUtils;<br><br>const<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQBO Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQBO_STRUC_ID = 'BO &nbsp;';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQBO_VERSION_1 &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQBO_CURRENT_VERSION = 1;<br><br> &nbsp;(* Begin Options *)<br> &nbsp;MQBO_NONE = 0;<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQCIH Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQCIH_STRUC_ID = 'CIH ';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQCIH_VERSION_1 &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQCIH_VERSION_2 &nbsp; &nbsp; &nbsp; = 2;<br> &nbsp;MQCIH_CURRENT_VERSION = 2;<br><br> &nbsp;(* Structure Length *)<br> &nbsp;MQCIH_LENGTH_1 &nbsp; &nbsp; &nbsp; = 164;<br> &nbsp;MQCIH_LENGTH_2 &nbsp; &nbsp; &nbsp; = 180;<br> &nbsp;MQCIH_CURRENT_LENGTH = 180;<br><br> &nbsp;(* Flags *)<br> &nbsp;MQCIH_NONE =0;<br><br> &nbsp;(* Return Code *)<br> &nbsp;MQCRC_OK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 0;<br> &nbsp;MQCRC_CICS_EXEC_ERROR &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQCRC_MQ_API_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2;<br> &nbsp;MQCRC_BRIDGE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 3;<br> &nbsp;MQCRC_BRIDGE_ABEND &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 4;<br> &nbsp;MQCRC_APPLICATION_ABEND &nbsp; &nbsp; = 5;<br> &nbsp;MQCRC_SECURITY_ERROR &nbsp; &nbsp; &nbsp; &nbsp;= 6;<br> &nbsp;MQCRC_PROGRAM_NOT_AVAILABLE = 7;<br> &nbsp;MQCRC_BRIDGE_TIMEOUT &nbsp; &nbsp; &nbsp; &nbsp;= 8;<br> &nbsp;MQCRC_TRANSID_NOT_AVAILABLE = 9;<br><br> &nbsp;(* Unit of Work Control *)<br> &nbsp;MQCUOWC_ONLY &nbsp; &nbsp; = $00000111;<br> &nbsp;MQCUOWC_CONTINUE = $00010000;<br> &nbsp;MQCUOWC_FIRST &nbsp; &nbsp;= $00000011;<br> &nbsp;MQCUOWC_MIDDLE &nbsp; = $00000010;<br> &nbsp;MQCUOWC_LAST &nbsp; &nbsp; = $00000110;<br> &nbsp;MQCUOWC_COMMIT &nbsp; = $00000100;<br> &nbsp;MQCUOWC_BACKOUT &nbsp;= $00001100;<br><br> &nbsp;(* Get Wait Interval *)<br> &nbsp;MQCGWI_DEFAULT = -2;<br><br> &nbsp;(* Link Type *)<br> &nbsp;MQCLT_PROGRAM &nbsp; &nbsp; = 1;<br> &nbsp;MQCLT_TRANSACTION = 2;<br><br> &nbsp;(* Output Data Length *)<br> &nbsp;MQCODL_AS_INPUT = -1;<br><br> &nbsp;(* ADS Descriptor *)<br> &nbsp;MQCADSD_NONE &nbsp; &nbsp; &nbsp;= $00000000;<br> &nbsp;MQCADSD_SEND &nbsp; &nbsp; &nbsp;= $00000001;<br> &nbsp;MQCADSD_RECV &nbsp; &nbsp; &nbsp;= $00000010;<br> &nbsp;MQCADSD_MSGFORMAT = $00000100;<br><br> &nbsp;(* Conversational Task *)<br> &nbsp;MQCCT_YES = $00000001;<br> &nbsp;MQCCT_NO &nbsp;= $00000000;<br><br> &nbsp;(* Task End Status *)<br> &nbsp;MQCTES_NOSYNC &nbsp;= $00000000;<br> &nbsp;MQCTES_COMMIT &nbsp;= $00000100;<br> &nbsp;MQCTES_BACKOUT = $00001100;<br> &nbsp;MQCTES_ENDTASK = $00010000;<br><br> &nbsp;(* Facility *)<br> &nbsp;MQCFAC_NONE = #0#0#0#0#0#0#0#0;<br><br> &nbsp;(* Function *)<br> &nbsp;MQCFUNC_MQCONN = 'CONN';<br> &nbsp;MQCFUNC_MQGET &nbsp;= 'GET ';<br> &nbsp;MQCFUNC_MQINQ &nbsp;= 'INQ ';<br> &nbsp;MQCFUNC_MQOPEN = 'OPEN';<br> &nbsp;MQCFUNC_MQPUT &nbsp;= 'PUT ';<br> &nbsp;MQCFUNC_MQPUT1 = 'PUT1';<br> &nbsp;MQCFUNC_NONE &nbsp; = ' &nbsp; &nbsp;';<br><br> &nbsp;(* Start Code *)<br> &nbsp;MQCSC_START &nbsp; &nbsp; = 'S &nbsp; ';<br> &nbsp;MQCSC_STARTDATA = 'SD &nbsp;';<br> &nbsp;MQCSC_TERMINPUT = 'TD &nbsp;';<br> &nbsp;MQCSC_NONE &nbsp; &nbsp; &nbsp;= ' &nbsp; &nbsp;';<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQCNO Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQCNO_STRUC_ID = 'CNO ';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQCNO_VERSION_1 &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQCNO_VERSION_2 &nbsp; &nbsp; &nbsp; = 2;<br> &nbsp;MQCNO_CURRENT_VERSION = 2;<br><br> &nbsp;(* Connect Options *)<br> &nbsp;MQCNO_STANDARD_BINDING = $00000000;<br> &nbsp;MQCNO_FASTPATH_BINDING = $00000001;<br> &nbsp;MQCNO_NONE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000000;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQDH Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQDH_STRUC_ID = 'DH &nbsp;';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQDH_VERSION_1 &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQDH_CURRENT_VERSION = 1;<br><br> &nbsp;(* General Flags *)<br> &nbsp;MQDHF_NEW_MSG_IDS = 1;<br> &nbsp;MQDHF_NONE &nbsp; &nbsp; &nbsp; &nbsp;= 0;<br><br> &nbsp;(* Put Message Record Flags *)<br> &nbsp;(* See values for &quot;Put Message Record Fields&quot; under MQPMO *)<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQDLH Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQDLH_STRUC_ID = 'DLH ';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQDLH_VERSION_1 &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQDLH_CURRENT_VERSION = 1;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQGMO Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQGMO_STRUC_ID = 'GMO ';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQGMO_VERSION_1 &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQGMO_VERSION_2 &nbsp; &nbsp; &nbsp; = 2;<br> &nbsp;MQGMO_VERSION_3 &nbsp; &nbsp; &nbsp; = 3;<br> &nbsp;MQGMO_CURRENT_VERSION = 3;<br><br> &nbsp;(* Get-Message Options *)<br> &nbsp;MQGMO_WAIT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000001;<br> &nbsp;MQGMO_NO_WAIT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000000;<br> &nbsp;MQGMO_SYNCPOINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000002;<br> &nbsp;MQGMO_SYNCPOINT_IF_PERSISTENT = $00001000;<br> &nbsp;MQGMO_NO_SYNCPOINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000004;<br> &nbsp;MQGMO_MARK_SKIP_BACKOUT &nbsp; &nbsp; &nbsp; = $00000080;<br> &nbsp;MQGMO_BROWSE_FIRST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000010;<br> &nbsp;MQGMO_BROWSE_NEXT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000020;<br> &nbsp;MQGMO_BROWSE_MSG_UNDER_CURSOR = $00000800;<br> &nbsp;MQGMO_MSG_UNDER_CURSOR &nbsp; &nbsp; &nbsp; &nbsp;= $00000100;<br> &nbsp;MQGMO_LOCK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000200;<br> &nbsp;MQGMO_UNLOCK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000400;<br> &nbsp;MQGMO_ACCEPT_TRUNCATED_MSG &nbsp; &nbsp;= $00000040;<br> &nbsp;MQGMO_SET_SIGNAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000008;<br> &nbsp;MQGMO_FAIL_IF_QUIESCING &nbsp; &nbsp; &nbsp; = $00002000;<br> &nbsp;MQGMO_CONVERT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00004000;<br> &nbsp;MQGMO_LOGICAL_ORDER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00008000;<br> &nbsp;MQGMO_COMPLETE_MSG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00010000;<br> &nbsp;MQGMO_ALL_MSGS_AVAILABLE &nbsp; &nbsp; &nbsp;= $00020000;<br> &nbsp;MQGMO_ALL_SEGMENTS_AVAILABLE &nbsp;= $00040000;<br> &nbsp;MQGMO_NONE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000000;<br><br> &nbsp;(* Wait Interval *)<br> &nbsp;MQWI_UNLIMITED = -1;<br><br> &nbsp;(* Signal Values *)<br> &nbsp;MQEC_MSG_ARRIVED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2;<br> &nbsp;MQEC_WAIT_INTERVAL_EXPIRED = 3;<br> &nbsp;MQEC_WAIT_CANCELED &nbsp; &nbsp; &nbsp; &nbsp; = 4;<br> &nbsp;MQEC_Q_MGR_QUIESCING &nbsp; &nbsp; &nbsp; = 5;<br> &nbsp;MQEC_CONNECTION_QUIESCING &nbsp;= 6;<br><br> &nbsp;(* Match Options *)<br> &nbsp;MQMO_MATCH_MSG_ID &nbsp; &nbsp; &nbsp; &nbsp; = $00000001;<br> &nbsp;MQMO_MATCH_CORREL_ID &nbsp; &nbsp; &nbsp;= $00000002;<br> &nbsp;MQMO_MATCH_GROUP_ID &nbsp; &nbsp; &nbsp; = $00000004;<br> &nbsp;MQMO_MATCH_MSG_SEQ_NUMBER = $00000008;<br> &nbsp;MQMO_MATCH_OFFSET &nbsp; &nbsp; &nbsp; &nbsp; = $00000010;<br> &nbsp;MQMO_MATCH_MSG_TOKEN &nbsp; &nbsp; &nbsp;= $00000020;<br> &nbsp;MQMO_NONE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000000;<br><br> &nbsp;(* Group Status *)<br> &nbsp;MQGS_NOT_IN_GROUP &nbsp; &nbsp; &nbsp;= ' ';<br> &nbsp;MQGS_MSG_IN_GROUP &nbsp; &nbsp; &nbsp;= 'G';<br> &nbsp;MQGS_LAST_MSG_IN_GROUP = 'L';<br><br> &nbsp;(* Segment Status *)<br> &nbsp;MQSS_NOT_A_SEGMENT = ' ';<br> &nbsp;MQSS_SEGMENT &nbsp; &nbsp; &nbsp; = 'S';<br> &nbsp;MQSS_LAST_SEGMENT &nbsp;= 'L';<br><br> &nbsp;(* Segmentation *)<br> &nbsp;MQSEG_INHIBITED = ' ';<br> &nbsp;MQSEG_ALLOWED &nbsp; = 'A';<br><br> &nbsp;(* Message Token *)<br> &nbsp;MQMTOK_NONE = #0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0;<br><br> &nbsp;(* Returned Length *)<br> &nbsp;MQRL_UNDEFINED = -1;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQIIH Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQIIH_STRUC_ID = 'IIH ';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQIIH_VERSION_1 &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQIIH_CURRENT_VERSION = 1;<br><br> &nbsp;(* Structure Length *)<br> &nbsp;MQIIH_LENGTH_1 = 84;<br><br> &nbsp;(* Flags *)<br> &nbsp;MQIIH_NONE = 0;<br><br> &nbsp;(* Authenticator *)<br> &nbsp;MQIAUT_NONE = ' &nbsp; &nbsp; &nbsp; &nbsp;';<br><br> &nbsp;(* Transaction Instance Identifier *)<br> &nbsp;MQITII_NONE = #0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0;<br><br> &nbsp;(* Transaction State *)<br> &nbsp;MQITS_IN_CONVERSATION &nbsp; &nbsp; = 'C';<br> &nbsp;MQITS_NOT_IN_CONVERSATION = ' ';<br> &nbsp;MQITS_ARCHITECTED &nbsp; &nbsp; &nbsp; &nbsp; = 'A';<br><br> &nbsp;(* Commit Mode *)<br> &nbsp;MQICM_COMMIT_THEN_SEND = '0';<br> &nbsp;MQICM_SEND_THEN_COMMIT = '1';<br><br> &nbsp;(* Security Scope *)<br> &nbsp;MQISS_CHECK = 'C';<br> &nbsp;MQISS_FULL &nbsp;= 'F';<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQMD Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQMD_STRUC_ID = 'MD &nbsp;';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQMD_VERSION_1 &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQMD_VERSION_2 &nbsp; &nbsp; &nbsp; = 2;<br> &nbsp;MQMD_CURRENT_VERSION = 2;<br><br> &nbsp;(* Report Options *)<br> &nbsp;MQRO_EXCEPTION &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $01000000;<br> &nbsp;MQRO_EXCEPTION_WITH_DATA &nbsp; &nbsp; &nbsp; = $03000000;<br> &nbsp;MQRO_EXCEPTION_WITH_FULL_DATA &nbsp;= $07000000;<br> &nbsp;MQRO_EXPIRATION &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00200000;<br> &nbsp;MQRO_EXPIRATION_WITH_DATA &nbsp; &nbsp; &nbsp;= $00600000;<br> &nbsp;MQRO_EXPIRATION_WITH_FULL_DATA = $00e00000;<br> &nbsp;MQRO_COA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000100;<br> &nbsp;MQRO_COA_WITH_DATA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000300;<br> &nbsp;MQRO_COA_WITH_FULL_DATA &nbsp; &nbsp; &nbsp; &nbsp;= $00000700;<br> &nbsp;MQRO_COD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000800;<br> &nbsp;MQRO_COD_WITH_DATA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00001800;<br> &nbsp;MQRO_COD_WITH_FULL_DATA &nbsp; &nbsp; &nbsp; &nbsp;= $00003800;<br> &nbsp;MQRO_PAN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000001;<br> &nbsp;MQRO_NAN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000002;<br> &nbsp;MQRO_NEW_MSG_ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000000;<br> &nbsp;MQRO_PASS_MSG_ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000080;<br> &nbsp;MQRO_COPY_MSG_ID_TO_CORREL_ID &nbsp;= $00000000;<br> &nbsp;MQRO_PASS_CORREL_ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000040;<br> &nbsp;MQRO_DEAD_LETTER_Q &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000000;<br> &nbsp;MQRO_DISCARD_MSG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $08000000;<br> &nbsp;MQRO_NONE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000000;<br><br> &nbsp;(* Report Options Masks *)<br> &nbsp;MQRO_REJECT_UNSUP_MASK &nbsp; &nbsp; &nbsp; &nbsp; = $101c0000;<br> &nbsp;MQRO_ACCEPT_UNSUP_MASK &nbsp; &nbsp; &nbsp; &nbsp; = $efe000ff;<br> &nbsp;MQRO_ACCEPT_UNSUP_IF_XMIT_MASK = $0003ff00;<br><br> &nbsp;(* Message Types *)<br> &nbsp;MQMT_SYSTEM_FIRST &nbsp; &nbsp; &nbsp; &nbsp;= 1;<br> &nbsp;MQMT_REQUEST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQMT_REPLY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2;<br> &nbsp;MQMT_DATAGRAM &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 8;<br> &nbsp;MQMT_REPORT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 4;<br> &nbsp;MQMT_MQE_FIELDS_FROM_MQE = 112;<br> &nbsp;MQMT_MQE_FIELDS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 113;<br> &nbsp;MQMT_SYSTEM_LAST &nbsp; &nbsp; &nbsp; &nbsp; = 65535;<br> &nbsp;MQMT_APPL_FIRST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 65536;<br> &nbsp;MQMT_APPL_LAST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 999999999;<br><br> &nbsp;(* Expiry *)<br> &nbsp;MQEI_UNLIMITED = -1;<br><br> &nbsp;(* Feedback Values *)<br> &nbsp;MQFB_NONE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 0;<br> &nbsp;MQFB_SYSTEM_FIRST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 1;<br> &nbsp;MQFB_QUIT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 256;<br> &nbsp;MQFB_EXPIRATION &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 258;<br> &nbsp;MQFB_COA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 259;<br> &nbsp;MQFB_COD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 260;<br> &nbsp;MQFB_CHANNEL_COMPLETED &nbsp; &nbsp; = 262;<br> &nbsp;MQFB_CHANNEL_FAIL_RETRY &nbsp; &nbsp;= 263;<br> &nbsp;MQFB_CHANNEL_FAIL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 264;<br> &nbsp;MQFB_APPL_CANNOT_BE_STARTED= 265;<br> &nbsp;MQFB_TM_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 266;<br> &nbsp;MQFB_APPL_TYPE_ERROR &nbsp; &nbsp; &nbsp; = 267;<br> &nbsp;MQFB_STOPPED_BY_MSG_EXIT &nbsp; = 268;<br> &nbsp;MQFB_XMIT_Q_MSG_ERROR &nbsp; &nbsp; &nbsp;= 271;<br> &nbsp;MQFB_PAN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 275;<br> &nbsp;MQFB_NAN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 276;<br> &nbsp;MQFB_STOPPED_BY_CHAD_EXIT &nbsp;= 277;<br> &nbsp;MQFB_STOPPED_BY_PUBSUB_EXIT= 279;<br> &nbsp;MQFB_NOT_A_REPOSITORY_MSG &nbsp;= 280;<br> &nbsp;MQFB_BIND_OPEN_CLUSRCVR_DEL= 281;<br> &nbsp;MQFB_DATA_LENGTH_ZERO &nbsp; &nbsp; &nbsp;= 291;<br> &nbsp;MQFB_DATA_LENGTH_NEGATIVE &nbsp;= 292;<br> &nbsp;MQFB_DATA_LENGTH_TOO_BIG &nbsp; = 293;<br> &nbsp;MQFB_BUFFER_OVERFLOW &nbsp; &nbsp; &nbsp; = 294;<br> &nbsp;MQFB_LENGTH_OFF_BY_ONE &nbsp; &nbsp; = 295;<br> &nbsp;MQFB_IIH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 296;<br> &nbsp;MQFB_NOT_AUTHORIZED_FOR_IMS= 298;<br> &nbsp;MQFB_IMS_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 300;<br> &nbsp;MQFB_IMS_FIRST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 301;<br> &nbsp;MQFB_IMS_LAST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 399;<br> &nbsp;MQFB_CICS_INTERNAL_ERROR &nbsp; = 401;<br> &nbsp;MQFB_CICS_NOT_AUTHORIZED &nbsp; = 402;<br> &nbsp;MQFB_CICS_BRIDGE_FAILURE &nbsp; = 403;<br> &nbsp;MQFB_CICS_CORREL_ID_ERROR &nbsp;= 404;<br> &nbsp;MQFB_CICS_CCSID_ERROR &nbsp; &nbsp; &nbsp;= 405;<br> &nbsp;MQFB_CICS_ENCODING_ERROR &nbsp; = 406;<br> &nbsp;MQFB_CICS_CIH_ERROR &nbsp; &nbsp; &nbsp; &nbsp;= 407;<br> &nbsp;MQFB_CICS_UOW_ERROR &nbsp; &nbsp; &nbsp; &nbsp;= 408;<br> &nbsp;MQFB_CICS_COMMAREA_ERROR &nbsp; = 409;<br> &nbsp;MQFB_CICS_APPL_NOT_STARTED = 410;<br> &nbsp;MQFB_CICS_APPL_ABENDED &nbsp; &nbsp; = 411;<br> &nbsp;MQFB_CICS_DLQ_ERROR &nbsp; &nbsp; &nbsp; &nbsp;= 412;<br> &nbsp;MQFB_CICS_UOW_BACKED_OUT &nbsp; = 413;<br> &nbsp;MQFB_SYSTEM_LAST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 65535;<br> &nbsp;MQFB_APPL_FIRST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 65536;<br> &nbsp;MQFB_APPL_LAST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 999999999;<br><br> &nbsp;(* Encoding *)<br> &nbsp;MQENC_NATIVE = $00000222;<br><br> &nbsp;(* Encoding Masks *)<br> &nbsp;MQENC_INTEGER_MASK &nbsp;= $0000000f;<br> &nbsp;MQENC_DECIMAL_MASK &nbsp;= $000000f0;<br> &nbsp;MQENC_FLOAT_MASK &nbsp; &nbsp;= $00000f00;<br> &nbsp;MQENC_RESERVED_MASK = $fffff000;<br><br> &nbsp;(* Encodings for Binary Integers *)<br> &nbsp;MQENC_INTEGER_UNDEFINED = $00000000;<br> &nbsp;MQENC_INTEGER_NORMAL &nbsp; &nbsp;= $00000001;<br> &nbsp;MQENC_INTEGER_REVERSED &nbsp;= $00000002;<br><br> &nbsp;(* Encodings for Packed-Decimal Integers *)<br> &nbsp;MQENC_DECIMAL_UNDEFINED = $00000000;<br> &nbsp;MQENC_DECIMAL_NORMAL &nbsp; &nbsp;= $00000010;<br> &nbsp;MQENC_DECIMAL_REVERSED &nbsp;= $00000020;<br><br> &nbsp;(* Encodings for Floating-Point Numbers *)<br> &nbsp;MQENC_FLOAT_UNDEFINED &nbsp; &nbsp; = $00000000;<br> &nbsp;MQENC_FLOAT_IEEE_NORMAL &nbsp; = $00000100;<br> &nbsp;MQENC_FLOAT_IEEE_REVERSED = $00000200;<br> &nbsp;MQENC_FLOAT_S390 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000300;<br><br> &nbsp;(* Coded Character-Set Identifiers *)<br> &nbsp;MQCCSI_UNDEFINED = 0;<br> &nbsp;MQCCSI_DEFAULT &nbsp; = 0;<br> &nbsp;MQCCSI_Q_MGR &nbsp; &nbsp; = 0;<br> &nbsp;MQCCSI_INHERIT &nbsp; = -2;<br> &nbsp;MQCCSI_EMBEDDED &nbsp;= -1;<br><br> &nbsp;(* Formats *)<br> &nbsp;MQFMT_NONE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = ' &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp;MQFMT_ADMIN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 'MQADMIN ';<br> &nbsp;MQFMT_CHANNEL_COMPLETED &nbsp;= 'MQCHCOM ';<br> &nbsp;MQFMT_CICS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 'MQCICS &nbsp;';<br> &nbsp;MQFMT_COMMAND_1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 'MQCMD1 &nbsp;';<br> &nbsp;MQFMT_COMMAND_2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 'MQCMD2 &nbsp;';<br> &nbsp;MQFMT_DEAD_LETTER_HEADER = 'MQDEAD &nbsp;';<br> &nbsp;MQFMT_DIST_HEADER &nbsp; &nbsp; &nbsp; &nbsp;= 'MQHDIST ';<br> &nbsp;MQFMT_EVENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 'MQEVENT ';<br> &nbsp;MQFMT_IMS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 'MQIMS &nbsp; ';<br> &nbsp;MQFMT_IMS_VAR_STRING &nbsp; &nbsp; = 'MQIMSVS ';<br> &nbsp;MQFMT_MD_EXTENSION &nbsp; &nbsp; &nbsp; = 'MQHMDE &nbsp;';<br> &nbsp;MQFMT_PCF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 'MQPCF &nbsp; ';<br> &nbsp;MQFMT_REF_MSG_HEADER &nbsp; &nbsp; = 'MQHREF &nbsp;';<br> &nbsp;MQFMT_RF_HEADER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 'MQHRF &nbsp; ';<br> &nbsp;MQFMT_RF_HEADER_2 &nbsp; &nbsp; &nbsp; &nbsp;= 'MQHRF2 &nbsp;';<br> &nbsp;MQFMT_STRING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 'MQSTR &nbsp; ';<br> &nbsp;MQFMT_TRIGGER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 'MQTRIG &nbsp;';<br> &nbsp;MQFMT_WORK_INFO_HEADER &nbsp; = 'MQHWIH &nbsp;';<br> &nbsp;MQFMT_XMIT_Q_HEADER &nbsp; &nbsp; &nbsp;= 'MQXMIT &nbsp;';<br><br> &nbsp;(* Priority *)<br> &nbsp;MQPRI_PRIORITY_AS_Q_DEF = -1;<br><br> &nbsp;(* Persistence Values *)<br> &nbsp;MQPER_NOT_PERSISTENT &nbsp; &nbsp; &nbsp; = 0;<br> &nbsp;MQPER_PERSISTENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQPER_PERSISTENCE_AS_Q_DEF = 2;<br><br> &nbsp;(* Message Identifier *)<br> &nbsp;MQMI_NONE = #0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0;<br><br> &nbsp;(* Correlation Identifier *)<br> &nbsp;MQCI_NONE &nbsp; = #0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0;<br> &nbsp;MQCI_NEW_SESSION = '#41#$4d#51#21#$4e#45#57#$5f#53#45#53#53#49#$4f#$4e#$5f#43#$4f#52#52#45#$4c#49#44';<br><br> &nbsp;(* Accounting Token *)<br> &nbsp;MQACT_NONE = #0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0;<br><br> &nbsp;(* Accounting Token Type *)<br> &nbsp;MQACTT_UNKNOWN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = '$#00';<br> &nbsp;MQACTT_CICS_LUOW_ID &nbsp; &nbsp; &nbsp; &nbsp;= '$#01';<br> &nbsp;MQACTT_OS2_DEFAULT &nbsp; &nbsp; &nbsp; &nbsp; = '$#04';<br> &nbsp;MQACTT_DOS_DEFAULT &nbsp; &nbsp; &nbsp; &nbsp; = '$#05';<br> &nbsp;MQACTT_UNIX_NUMERIC_ID &nbsp; &nbsp; = '$#06';<br> &nbsp;MQACTT_OS400_ACCOUNT_TOKEN = '$#08';<br> &nbsp;MQACTT_WINDOWS_DEFAULT &nbsp; &nbsp; = '$#09';<br> &nbsp;MQACTT_NT_SECURITY_ID &nbsp; &nbsp; &nbsp;= '$#0b';<br> &nbsp;MQACTT_USER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= '$#19';<br><br> &nbsp;(* Put Application Types *)<br> &nbsp;MQAT_UNKNOWN &nbsp; &nbsp;= -1;<br> &nbsp;MQAT_NO_CONTEXT = 0;<br> &nbsp;MQAT_CICS &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQAT_MVS &nbsp; &nbsp; &nbsp; &nbsp;= 2;<br> &nbsp;MQAT_OS390 &nbsp; &nbsp; &nbsp;= 2;<br> &nbsp;MQAT_IMS &nbsp; &nbsp; &nbsp; &nbsp;= 3;<br> &nbsp;MQAT_OS2 &nbsp; &nbsp; &nbsp; &nbsp;= 4;<br> &nbsp;MQAT_DOS &nbsp; &nbsp; &nbsp; &nbsp;= 5;<br> &nbsp;MQAT_AIX &nbsp; &nbsp; &nbsp; &nbsp;= 6;<br> &nbsp;MQAT_UNIX &nbsp; &nbsp; &nbsp; = 6;<br> &nbsp;MQAT_QMGR &nbsp; &nbsp; &nbsp; = 7;<br> &nbsp;MQAT_OS400 &nbsp; &nbsp; &nbsp;= 8;<br> &nbsp;MQAT_WINDOWS &nbsp; &nbsp;= 9;<br> &nbsp;MQAT_CICS_VSE &nbsp; = 10;<br> &nbsp;MQAT_WINDOWS_NT = 11;<br> &nbsp;MQAT_VMS &nbsp; &nbsp; &nbsp; &nbsp;= 12;<br> &nbsp;MQAT_GUARDIAN &nbsp; = 13;<br> &nbsp;MQAT_NSK &nbsp; &nbsp; &nbsp; &nbsp;= 13;<br> &nbsp;MQAT_VOS &nbsp; &nbsp; &nbsp; &nbsp;= 14;<br> &nbsp;MQAT_IMS_BRIDGE = 19;<br> &nbsp;MQAT_XCF &nbsp; &nbsp; &nbsp; &nbsp;= 20;<br> &nbsp;MQAT_CICS_BRIDGE= 21;<br> &nbsp;MQAT_NOTES_AGENT= 22;<br> &nbsp;MQAT_BROKER &nbsp; &nbsp; = 26;<br> &nbsp;MQAT_JAVA &nbsp; &nbsp; &nbsp; = 28;<br> &nbsp;MQAT_DQM &nbsp; &nbsp; &nbsp; &nbsp;= 29;<br> &nbsp;MQAT_DEFAULT &nbsp; &nbsp;= 11;<br> &nbsp;MQAT_USER_FIRST = 65536;<br> &nbsp;MQAT_USER_LAST &nbsp;= 999999999;<br><br> &nbsp;(* Group Identifier *)<br> &nbsp;MQGI_NONE = #0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0;<br><br> &nbsp;(* Message Flags *)<br> &nbsp;MQMF_SEGMENTATION_INHIBITED = $00000000;<br> &nbsp;MQMF_SEGMENTATION_ALLOWED &nbsp; = $00000001;<br> &nbsp;MQMF_MSG_IN_GROUP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000008;<br> &nbsp;MQMF_LAST_MSG_IN_GROUP &nbsp; &nbsp; &nbsp;= $00000010;<br> &nbsp;MQMF_SEGMENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000002;<br> &nbsp;MQMF_LAST_SEGMENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000004;<br> &nbsp;MQMF_NONE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000000;<br><br> &nbsp;(* Message Flags Masks *)<br> &nbsp;MQMF_REJECT_UNSUP_MASK &nbsp; &nbsp; &nbsp; &nbsp; = $00000fff;<br> &nbsp;MQMF_ACCEPT_UNSUP_MASK &nbsp; &nbsp; &nbsp; &nbsp; = $fff00000;<br> &nbsp;MQMF_ACCEPT_UNSUP_IF_XMIT_MASK = $000ff000;<br><br> &nbsp;(* Original Length *)<br> &nbsp;MQOL_UNDEFINED = -1;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQMDE Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQMDE_STRUC_ID = 'MDE ';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQMDE_VERSION_2 &nbsp; &nbsp; &nbsp; = 2;<br> &nbsp;MQMDE_CURRENT_VERSION = 2;<br><br> &nbsp;(* Structure Length *)<br> &nbsp;MQMDE_LENGTH_2 = 72;<br><br> &nbsp;(* General Flags *)<br> &nbsp;MQMDEF_NONE = $00000000;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQOD Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQOD_STRUC_ID = 'OD &nbsp;';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQOD_VERSION_1 &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQOD_VERSION_2 &nbsp; &nbsp; &nbsp; = 2;<br> &nbsp;MQOD_VERSION_3 &nbsp; &nbsp; &nbsp; = 3;<br> &nbsp;MQOD_CURRENT_VERSION = 3;<br><br> &nbsp;(* Structure Length *)<br> &nbsp;MQOD_CURRENT_LENGTH = 336;<br><br> &nbsp;(* Object Types *)<br> &nbsp;MQOT_Q &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 1;<br> &nbsp;MQOT_NAMELIST &nbsp; = 2;<br> &nbsp;MQOT_PROCESS &nbsp; &nbsp;= 3;<br> &nbsp;MQOT_Q_MGR &nbsp; &nbsp; &nbsp;= 5;<br> &nbsp;MQOT_CHANNEL &nbsp; &nbsp;= 6;<br> &nbsp;MQOT_RESERVED_1 = 7;<br><br> &nbsp;(* Extended Object Types *)<br> &nbsp;MQOT_ALL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 1001;<br> &nbsp;MQOT_ALIAS_Q &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 1002;<br> &nbsp;MQOT_MODEL_Q &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 1003;<br> &nbsp;MQOT_LOCAL_Q &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 1004;<br> &nbsp;MQOT_REMOTE_Q &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 1005;<br> &nbsp;MQOT_SENDER_CHANNEL &nbsp; &nbsp;= 1007;<br> &nbsp;MQOT_SERVER_CHANNEL &nbsp; &nbsp;= 1008;<br> &nbsp;MQOT_REQUESTER_CHANNEL = 1009;<br> &nbsp;MQOT_RECEIVER_CHANNEL &nbsp;= 1010;<br> &nbsp;MQOT_CURRENT_CHANNEL &nbsp; = 1011;<br> &nbsp;MQOT_SAVED_CHANNEL &nbsp; &nbsp; = 1012;<br> &nbsp;MQOT_SVRCONN_CHANNEL &nbsp; = 1013;<br> &nbsp;MQOT_CLNTCONN_CHANNEL &nbsp;= 1014;<br><br> &nbsp;(* Security Identifier *)<br> &nbsp;MQSID_NONE = #0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0;<br><br> &nbsp;(* Security Identifier Type *)<br> &nbsp;MQSIDT_NONE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = '#$00';<br> &nbsp;MQSIDT_NT_SECURITY_ID = '#$01';<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQPMO Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQPMO_STRUC_ID = 'PMO ';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQPMO_VERSION_1 &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQPMO_VERSION_2 &nbsp; &nbsp; &nbsp; = 2;<br> &nbsp;MQPMO_CURRENT_VERSION = 2;<br><br> &nbsp;(* Structure Length *)<br> &nbsp;MQPMO_CURRENT_LENGTH = 152;<br><br> &nbsp;(* Put-Message Options *)<br> &nbsp;MQPMO_SYNCPOINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000002;<br> &nbsp;MQPMO_NO_SYNCPOINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000004;<br> &nbsp;MQPMO_NEW_MSG_ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000040;<br> &nbsp;MQPMO_NEW_CORREL_ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000080;<br> &nbsp;MQPMO_LOGICAL_ORDER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00008000;<br> &nbsp;MQPMO_NO_CONTEXT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00004000;<br> &nbsp;MQPMO_DEFAULT_CONTEXT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000020;<br> &nbsp;MQPMO_PASS_IDENTITY_CONTEXT &nbsp; &nbsp;= $00000100;<br> &nbsp;MQPMO_PASS_ALL_CONTEXT &nbsp; &nbsp; &nbsp; &nbsp; = $00000200;<br> &nbsp;MQPMO_SET_IDENTITY_CONTEXT &nbsp; &nbsp; = $00000400;<br> &nbsp;MQPMO_SET_ALL_CONTEXT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000800;<br> &nbsp;MQPMO_ALTERNATE_USER_AUTHORITY = $00001000;<br> &nbsp;MQPMO_FAIL_IF_QUIESCING &nbsp; &nbsp; &nbsp; &nbsp;= $00002000;<br> &nbsp;MQPMO_NONE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000000;<br><br> &nbsp;(* Put Message Record Fields *)<br> &nbsp;MQPMRF_MSG_ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQPMRF_CORREL_ID &nbsp; &nbsp; &nbsp; &nbsp;= 2;<br> &nbsp;MQPMRF_GROUP_ID &nbsp; &nbsp; &nbsp; &nbsp; = 4;<br> &nbsp;MQPMRF_FEEDBACK &nbsp; &nbsp; &nbsp; &nbsp; = 8;<br> &nbsp;MQPMRF_ACCOUNTING_TOKEN = 16;<br> &nbsp;MQPMRF_NONE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 0;<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQRFH Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQRFH_STRUC_ID = 'RFH ';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQRFH_VERSION_1 = 1;<br> &nbsp;MQRFH_VERSION_2 = 2;<br><br> &nbsp;(* Structure Length *)<br> &nbsp;MQRFH_STRUC_LENGTH_FIXED &nbsp; = 32;<br> &nbsp;MQRFH_STRUC_LENGTH_FIXED_2 = 36;<br><br> &nbsp;(* Flags *)<br> &nbsp;MQRFH_NONE = $00000000;<br><br> &nbsp;(* Names for Name/Value String *)<br> &nbsp;MQNVS_APPL_TYPE = 'OPT_APP_GRP ';<br> &nbsp;MQNVS_MSG_TYPE &nbsp;= 'OPT_MSG_TYPE ';<br><br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQRMH Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQRMH_STRUC_ID = 'RMH ';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQRMH_VERSION_1 &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQRMH_CURRENT_VERSION = 1;<br><br> &nbsp;(* Flags *)<br> &nbsp;MQRMHF_LAST &nbsp; &nbsp; = $00000001;<br> &nbsp;MQRMHF_NOT_LAST = $00000000;<br><br> &nbsp;(* Object Instance Identifier *)<br> &nbsp;MQOII_NONE = #0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQTM Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQTM_STRUC_ID = 'TM &nbsp;';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQTM_VERSION_1 &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQTM_CURRENT_VERSION = 1;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQTMC2 Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQTMC_STRUC_ID = 'TMC ';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQTMC_VERSION_1 &nbsp; &nbsp; &nbsp; = ' &nbsp; 1';<br> &nbsp;MQTMC_VERSION_2 &nbsp; &nbsp; &nbsp; = ' &nbsp; 2';<br> &nbsp;MQTMC_CURRENT_VERSION = ' &nbsp; 2';<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQWIH Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQWIH_STRUC_ID = 'WIH ';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQWIH_VERSION_1 &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQWIH_CURRENT_VERSION = 1;<br><br> &nbsp;(* Structure Length *)<br> &nbsp;MQWIH_LENGTH_1 &nbsp; &nbsp; &nbsp; = 120;<br> &nbsp;MQWIH_CURRENT_LENGTH = 120;<br><br> &nbsp;(* Flags *)<br> &nbsp;MQWIH_NONE = 0;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQXQH Structure &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Structure Identifier *)<br> &nbsp;MQXQH_STRUC_ID = 'XQH ';<br><br> &nbsp;(* Structure Version Number *)<br> &nbsp;MQXQH_VERSION_1 &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQXQH_CURRENT_VERSION = 1;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQCLOSE Function &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Object Handle *)<br> &nbsp;MQHO_UNUSABLE_HOBJ = -1;<br> &nbsp;MQHO_NONE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 0;<br><br> &nbsp;(* Close Options *)<br> &nbsp;MQCO_NONE &nbsp; &nbsp; &nbsp; &nbsp; = 0;<br> &nbsp;MQCO_DELETE &nbsp; &nbsp; &nbsp; = 1;<br> &nbsp;MQCO_DELETE_PURGE = 2;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQINQ Function &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Character-Attribute Selectors *)<br> &nbsp;MQCA_ALTERATION_DATE &nbsp; &nbsp; &nbsp; = 2027;<br> &nbsp;MQCA_ALTERATION_TIME &nbsp; &nbsp; &nbsp; = 2028;<br> &nbsp;MQCA_APPL_ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2001;<br> &nbsp;MQCA_BACKOUT_REQ_Q_NAME &nbsp; &nbsp;= 2019;<br> &nbsp;MQCA_BASE_Q_NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2002;<br> &nbsp;MQCA_CF_STRUC_NAME &nbsp; &nbsp; &nbsp; &nbsp; = 2039;<br> &nbsp;MQCA_CHANNEL_AUTO_DEF_EXIT = 2026;<br> &nbsp;MQCA_CLUSTER_DATE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2037;<br> &nbsp;MQCA_CLUSTER_NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2029;<br> &nbsp;MQCA_CLUSTER_NAMELIST &nbsp; &nbsp; &nbsp;= 2030;<br> &nbsp;MQCA_CLUSTER_Q_MGR_NAME &nbsp; &nbsp;= 2031;<br> &nbsp;MQCA_CLUSTER_TIME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2038;<br> &nbsp;MQCA_CLUSTER_WORKLOAD_DATA = 2034;<br> &nbsp;MQCA_CLUSTER_WORKLOAD_EXIT = 2033;<br> &nbsp;MQCA_COMMAND_INPUT_Q_NAME &nbsp;= 2003;<br> &nbsp;MQCA_CREATION_DATE &nbsp; &nbsp; &nbsp; &nbsp; = 2004;<br> &nbsp;MQCA_CREATION_TIME &nbsp; &nbsp; &nbsp; &nbsp; = 2005;<br> &nbsp;MQCA_DEAD_LETTER_Q_NAME &nbsp; &nbsp;= 2006;<br> &nbsp;MQCA_DEF_XMIT_Q_NAME &nbsp; &nbsp; &nbsp; = 2025;<br> &nbsp;MQCA_ENV_DATA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2007;<br> &nbsp;MQCA_FIRST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2001;<br> &nbsp;MQCA_IGQ_USER_ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2041;<br> &nbsp;MQCA_INITIATION_Q_NAME &nbsp; &nbsp; = 2008;<br> &nbsp;MQCA_LAST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 4000;<br> &nbsp;MQCA_LAST_USED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2041;<br> &nbsp;MQCA_NAMELIST_DESC &nbsp; &nbsp; &nbsp; &nbsp; = 2009;<br> &nbsp;MQCA_NAMELIST_NAME &nbsp; &nbsp; &nbsp; &nbsp; = 2010;<br> &nbsp;MQCA_NAMES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2020;<br> &nbsp;MQCA_PROCESS_DESC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2011;<br> &nbsp;MQCA_PROCESS_NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2012;<br> &nbsp;MQCA_Q_DESC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2013;<br> &nbsp;MQCA_Q_MGR_DESC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2014;<br> &nbsp;MQCA_Q_MGR_IDENTIFIER &nbsp; &nbsp; &nbsp;= 2032;<br> &nbsp;MQCA_Q_MGR_NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2015;<br> &nbsp;MQCA_Q_NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2016;<br> &nbsp;MQCA_QSG_NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2040;<br> &nbsp;MQCA_REMOTE_Q_MGR_NAME &nbsp; &nbsp; = 2017;<br> &nbsp;MQCA_REMOTE_Q_NAME &nbsp; &nbsp; &nbsp; &nbsp; = 2018;<br> &nbsp;MQCA_REPOSITORY_NAME &nbsp; &nbsp; &nbsp; = 2035;<br> &nbsp;MQCA_REPOSITORY_NAMELIST &nbsp; = 2036;<br> &nbsp;MQCA_STORAGE_CLASS &nbsp; &nbsp; &nbsp; &nbsp; = 2022;<br> &nbsp;MQCA_TRIGGER_DATA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2023;<br> &nbsp;MQCA_USER_DATA &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2021;<br> &nbsp;MQCA_USER_LIST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 4000;<br> &nbsp;MQCA_XMIT_Q_NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2024;<br><br> &nbsp;(* Integer-Attribute Selectors *)<br> &nbsp;MQIA_APPL_TYPE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 1;<br> &nbsp;MQIA_ARCHIVE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 60;<br> &nbsp;MQIA_AUTHORITY_EVENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 47;<br> &nbsp;MQIA_BACKOUT_THRESHOLD &nbsp; &nbsp; &nbsp; &nbsp;= 22;<br> &nbsp;MQIA_CHANNEL_AUTO_DEF &nbsp; &nbsp; &nbsp; &nbsp; = 55;<br> &nbsp;MQIA_CHANNEL_AUTO_DEF_EVENT &nbsp; = 56;<br> &nbsp;MQIA_CLUSTER_Q_TYPE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 59;<br> &nbsp;MQIA_CLUSTER_WORKLOAD_LENGTH &nbsp;= 58;<br> &nbsp;MQIA_CODED_CHAR_SET_ID &nbsp; &nbsp; &nbsp; &nbsp;= 2;<br> &nbsp;MQIA_COMMAND_LEVEL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 31;<br> &nbsp;MQIA_CURRENT_Q_DEPTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 3;<br> &nbsp;MQIA_DEF_BIND &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 61;<br> &nbsp;MQIA_DEF_INPUT_OPEN_OPTION &nbsp; &nbsp;= 4;<br> &nbsp;MQIA_DEF_PERSISTENCE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 5;<br> &nbsp;MQIA_DEF_PRIORITY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 6;<br> &nbsp;MQIA_DEFINITION_TYPE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 7;<br> &nbsp;MQIA_DIST_LISTS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 34;<br> &nbsp;MQIA_FIRST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 1;<br> &nbsp;MQIA_HARDEN_GET_BACKOUT &nbsp; &nbsp; &nbsp; = 8;<br> &nbsp;MQIA_HIGH_Q_DEPTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 36;<br> &nbsp;MQIA_IGQ_PUT_AUTHORITY &nbsp; &nbsp; &nbsp; &nbsp;= 65;<br> &nbsp;MQIA_INDEX_TYPE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 57;<br> &nbsp;MQIA_INHIBIT_EVENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 48;<br> &nbsp;MQIA_INHIBIT_GET &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 9;<br> &nbsp;MQIA_INHIBIT_PUT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 10;<br> &nbsp;MQIA_INTRA_GROUP_QUEUING &nbsp; &nbsp; &nbsp;= 64;<br> &nbsp;MQIA_LAST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2000;<br> &nbsp;MQIA_LAST_USED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 65;<br> &nbsp;MQIA_LOCAL_EVENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 49;<br> &nbsp;MQIA_MAX_HANDLES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 11;<br> &nbsp;MQIA_MAX_MSG_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 13;<br> &nbsp;MQIA_MAX_PRIORITY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 14;<br> &nbsp;MQIA_MAX_Q_DEPTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 15;<br> &nbsp;MQIA_MAX_UNCOMMITTED_MSGS &nbsp; &nbsp; = 33;<br> &nbsp;MQIA_MSG_DELIVERY_SEQUENCE &nbsp; &nbsp;= 16;<br> &nbsp;MQIA_MSG_DEQ_COUNT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 38;<br> &nbsp;MQIA_MSG_ENQ_COUNT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 37;<br> &nbsp;MQIA_NAME_COUNT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 19;<br> &nbsp;MQIA_OPEN_INPUT_COUNT &nbsp; &nbsp; &nbsp; &nbsp; = 17;<br> &nbsp;MQIA_OPEN_OUTPUT_COUNT &nbsp; &nbsp; &nbsp; &nbsp;= 18;<br> &nbsp;MQIA_PERFORMANCE_EVENT &nbsp; &nbsp; &nbsp; &nbsp;= 53;<br> &nbsp;MQIA_PLATFORM &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 32;<br> &nbsp;MQIA_Q_DEPTH_HIGH_EVENT &nbsp; &nbsp; &nbsp; = 43;<br> &nbsp;MQIA_Q_DEPTH_HIGH_LIMIT &nbsp; &nbsp; &nbsp; = 40;<br> &nbsp;MQIA_Q_DEPTH_LOW_EVENT &nbsp; &nbsp; &nbsp; &nbsp;= 44;<br> &nbsp;MQIA_Q_DEPTH_LOW_LIMIT &nbsp; &nbsp; &nbsp; &nbsp;= 41;<br> &nbsp;MQIA_Q_DEPTH_MAX_EVENT &nbsp; &nbsp; &nbsp; &nbsp;= 42;<br> &nbsp;MQIA_Q_SERVICE_INTERVAL &nbsp; &nbsp; &nbsp; = 54;<br> &nbsp;MQIA_Q_SERVICE_INTERVAL_EVENT = 46;<br> &nbsp;MQIA_Q_TYPE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 20;<br> &nbsp;MQIA_QSG_DISP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 63;<br> &nbsp;MQIA_REMOTE_EVENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 50;<br> &nbsp;MQIA_RETENTION_INTERVAL &nbsp; &nbsp; &nbsp; = 21;<br> &nbsp;MQIA_SCOPE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 45;<br> &nbsp;MQIA_SHAREABILITY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 23;<br> &nbsp;MQIA_START_STOP_EVENT &nbsp; &nbsp; &nbsp; &nbsp; = 52;<br> &nbsp;MQIA_SYNCPOINT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 30;<br> &nbsp;MQIA_TIME_SINCE_RESET &nbsp; &nbsp; &nbsp; &nbsp; = 35;<br> &nbsp;MQIA_TRIGGER_CONTROL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 24;<br> &nbsp;MQIA_TRIGGER_DEPTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 29;<br> &nbsp;MQIA_TRIGGER_INTERVAL &nbsp; &nbsp; &nbsp; &nbsp; = 25;<br> &nbsp;MQIA_TRIGGER_MSG_PRIORITY &nbsp; &nbsp; = 26;<br> &nbsp;MQIA_TRIGGER_TYPE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 28;<br> &nbsp;MQIA_USAGE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 12;<br> &nbsp;MQIA_USER_LIST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2000;<br><br> &nbsp;(* Integer Attribute Value Denoting &quot;Not Applicable&quot; *)<br> &nbsp;MQIAV_NOT_APPLICABLE = -1;<br> &nbsp;MQIAV_UNDEFINED &nbsp; &nbsp; &nbsp;= -2;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to MQOPEN Function &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Open Options *)<br> &nbsp;MQOO_INPUT_AS_Q_DEF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000001;<br> &nbsp;MQOO_INPUT_SHARED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000002;<br> &nbsp;MQOO_INPUT_EXCLUSIVE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000004;<br> &nbsp;MQOO_BROWSE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000008;<br> &nbsp;MQOO_OUTPUT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00000010;<br> &nbsp;MQOO_INQUIRE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000020;<br> &nbsp;MQOO_SET &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000040;<br> &nbsp;MQOO_BIND_ON_OPEN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00004000;<br> &nbsp;MQOO_BIND_NOT_FIXED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $00008000;<br> &nbsp;MQOO_BIND_AS_Q_DEF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000000;<br> &nbsp;MQOO_SAVE_ALL_CONTEXT &nbsp; &nbsp; &nbsp; &nbsp; = $00000080;<br> &nbsp;MQOO_PASS_IDENTITY_CONTEXT &nbsp; &nbsp;= $00000100;<br> &nbsp;MQOO_PASS_ALL_CONTEXT &nbsp; &nbsp; &nbsp; &nbsp; = $00000200;<br> &nbsp;MQOO_SET_IDENTITY_CONTEXT &nbsp; &nbsp; = $00000400;<br> &nbsp;MQOO_SET_ALL_CONTEXT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00000800;<br> &nbsp;MQOO_ALTERNATE_USER_AUTHORITY = $00001000;<br> &nbsp;MQOO_FAIL_IF_QUIESCING &nbsp; &nbsp; &nbsp; &nbsp;= $00002000;<br> &nbsp;MQOO_RESOLVE_NAMES &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= $00010000;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to All Functions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br> &nbsp;(* Connection Handle *)<br> &nbsp;MQHC_DEF_HCONN &nbsp; &nbsp; &nbsp;= 0;<br> &nbsp;MQHC_UNUSABLE_HCONN = -1;<br><br> &nbsp;(* String Lengths *)<br> &nbsp;MQ_ABEND_CODE_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; = 4;<br> &nbsp;MQ_ACCOUNTING_TOKEN_LENGTH &nbsp; = 32;<br> &nbsp;MQ_APPL_IDENTITY_DATA_LENGTH = 32;<br> &nbsp;MQ_APPL_NAME_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 28;<br> &nbsp;MQ_APPL_ORIGIN_DATA_LENGTH &nbsp; = 4;<br> &nbsp;MQ_ATTENTION_ID_LENGTH &nbsp; &nbsp; &nbsp; = 4;<br> &nbsp;MQ_AUTHENTICATOR_LENGTH &nbsp; &nbsp; &nbsp;= 8;<br> &nbsp;MQ_BRIDGE_NAME_LENGTH &nbsp; &nbsp; &nbsp; &nbsp;= 24;<br> &nbsp;MQ_CANCEL_CODE_LENGTH &nbsp; &nbsp; &nbsp; &nbsp;= 4;<br> &nbsp;MQ_CF_STRUC_NAME_LENGTH &nbsp; &nbsp; &nbsp;= 12;<br> &nbsp;MQ_CHANNEL_DATE_LENGTH &nbsp; &nbsp; &nbsp; = 12;<br> &nbsp;MQ_CHANNEL_DESC_LENGTH &nbsp; &nbsp; &nbsp; = 64;<br> &nbsp;MQ_CHANNEL_NAME_LENGTH &nbsp; &nbsp; &nbsp; = 20;<br> &nbsp;MQ_CHANNEL_TIME_LENGTH &nbsp; &nbsp; &nbsp; = 8;<br> &nbsp;MQ_CLUSTER_NAME_LENGTH &nbsp; &nbsp; &nbsp; = 48;<br> &nbsp;MQ_CONN_NAME_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 264;<br> &nbsp;MQ_CONN_TAG_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 128;<br> &nbsp;MQ_CORREL_ID_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 24;<br> &nbsp;MQ_CREATION_DATE_LENGTH &nbsp; &nbsp; &nbsp;= 12;<br> &nbsp;MQ_CREATION_TIME_LENGTH &nbsp; &nbsp; &nbsp;= 8;<br> &nbsp;MQ_DATE_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 12;<br> &nbsp;MQ_EXIT_DATA_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 32;<br> &nbsp;MQ_EXIT_NAME_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 128;<br> &nbsp;MQ_EXIT_USER_AREA_LENGTH &nbsp; &nbsp; = 16;<br> &nbsp;MQ_FACILITY_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 8;<br> &nbsp;MQ_FACILITY_LIKE_LENGTH &nbsp; &nbsp; &nbsp;= 4;<br> &nbsp;MQ_FORMAT_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 8;<br> &nbsp;MQ_FUNCTION_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 4;<br> &nbsp;MQ_GROUP_ID_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 24;<br> &nbsp;MQ_LTERM_OVERRIDE_LENGTH &nbsp; &nbsp; = 8;<br> &nbsp;MQ_LUWID_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 16;<br> &nbsp;MQ_MAX_EXIT_NAME_LENGTH &nbsp; &nbsp; &nbsp;= 128;<br> &nbsp;MQ_MAX_MCA_USER_ID_LENGTH &nbsp; &nbsp;= 64;<br> &nbsp;MQ_MCA_JOB_NAME_LENGTH &nbsp; &nbsp; &nbsp; = 28;<br> &nbsp;MQ_MCA_NAME_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 20;<br> &nbsp;MQ_MCA_USER_ID_LENGTH &nbsp; &nbsp; &nbsp; &nbsp;= 64;<br> &nbsp;MQ_MFS_MAP_NAME_LENGTH &nbsp; &nbsp; &nbsp; = 8;<br> &nbsp;MQ_MODE_NAME_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 8;<br> &nbsp;MQ_MSG_HEADER_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; = 4000;<br> &nbsp;MQ_MSG_ID_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 24;<br> &nbsp;MQ_MSG_TOKEN_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 16;<br> &nbsp;MQ_NAMELIST_DESC_LENGTH &nbsp; &nbsp; &nbsp;= 64;<br> &nbsp;MQ_NAMELIST_NAME_LENGTH &nbsp; &nbsp; &nbsp;= 48;<br> &nbsp;MQ_OBJECT_INSTANCE_ID_LENGTH = 24;<br> &nbsp;MQ_OBJECT_NAME_LENGTH &nbsp; &nbsp; &nbsp; &nbsp;= 48;<br> &nbsp;MQ_PASSWORD_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 12;<br> &nbsp;MQ_PROCESS_APPL_ID_LENGTH &nbsp; &nbsp;= 256;<br> &nbsp;MQ_PROCESS_DESC_LENGTH &nbsp; &nbsp; &nbsp; = 64;<br> &nbsp;MQ_PROCESS_ENV_DATA_LENGTH &nbsp; = 128;<br> &nbsp;MQ_PROCESS_NAME_LENGTH &nbsp; &nbsp; &nbsp; = 48;<br> &nbsp;MQ_PROCESS_USER_DATA_LENGTH &nbsp;= 128;<br> &nbsp;MQ_PUT_APPL_NAME_LENGTH &nbsp; &nbsp; &nbsp;= 28;<br> &nbsp;MQ_PUT_DATE_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 8;<br> &nbsp;MQ_PUT_TIME_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 8;<br> &nbsp;MQ_Q_DESC_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 64;<br> &nbsp;MQ_Q_MGR_DESC_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; = 64;<br> &nbsp;MQ_Q_MGR_IDENTIFIER_LENGTH &nbsp; = 48;<br> &nbsp;MQ_Q_MGR_NAME_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; = 48;<br> &nbsp;MQ_Q_NAME_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 48;<br> &nbsp;MQ_QSG_NAME_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 4;<br> &nbsp;MQ_REMOTE_SYS_ID_LENGTH &nbsp; &nbsp; &nbsp;= 4;<br> &nbsp;MQ_SECURITY_ID_LENGTH &nbsp; &nbsp; &nbsp; &nbsp;= 40;<br> &nbsp;MQ_SERVICE_NAME_LENGTH &nbsp; &nbsp; &nbsp; = 32;<br> &nbsp;MQ_SERVICE_STEP_LENGTH &nbsp; &nbsp; &nbsp; = 8;<br> &nbsp;MQ_SHORT_CONN_NAME_LENGTH &nbsp; &nbsp;= 20;<br> &nbsp;MQ_START_CODE_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; = 4;<br> &nbsp;MQ_STORAGE_CLASS_LENGTH &nbsp; &nbsp; &nbsp;= 8;<br> &nbsp;MQ_TIME_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 8;<br> &nbsp;MQ_TOTAL_EXIT_DATA_LENGTH &nbsp; &nbsp;= 999;<br> &nbsp;MQ_TOTAL_EXIT_NAME_LENGTH &nbsp; &nbsp;= 999;<br> &nbsp;MQ_TP_NAME_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 64;<br> &nbsp;MQ_TRAN_INSTANCE_ID_LENGTH &nbsp; = 16;<br> &nbsp;MQ_TRANSACTION_ID_LENGTH &nbsp; &nbsp; = 4;<br> &nbsp;MQ_TRIGGER_DATA_LENGTH &nbsp; &nbsp; &nbsp; = 64;<br> &nbsp;MQ_USER_ID_LENGTH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 12;<br><br> &nbsp;(* Completion Codes *)<br> &nbsp;MQCC_OK &nbsp; &nbsp; &nbsp;= 0;<br> &nbsp;MQCC_WARNING = 1;<br> &nbsp;MQCC_FAILED &nbsp;= 2;<br> &nbsp;MQCC_UNKNOWN = -1;<br><br> &nbsp;(* Reason Codes *)<br> &nbsp;MQRC_NONE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 0;<br> &nbsp;MQRC_ALIAS_BASE_Q_TYPE_ERROR &nbsp; = 2001;<br> &nbsp;MQRC_ALREADY_CONNECTED &nbsp; &nbsp; &nbsp; &nbsp; = 2002;<br> &nbsp;MQRC_BACKED_OUT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2003;<br> &nbsp;MQRC_BUFFER_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2004;<br> &nbsp;MQRC_BUFFER_LENGTH_ERROR &nbsp; &nbsp; &nbsp; = 2005;<br> &nbsp;MQRC_CHAR_ATTR_LENGTH_ERROR &nbsp; &nbsp;= 2006;<br> &nbsp;MQRC_CHAR_ATTRS_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2007;<br> &nbsp;MQRC_CHAR_ATTRS_TOO_SHORT &nbsp; &nbsp; &nbsp;= 2008;<br> &nbsp;MQRC_CONNECTION_BROKEN &nbsp; &nbsp; &nbsp; &nbsp; = 2009;<br> &nbsp;MQRC_DATA_LENGTH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; = 2010;<br> &nbsp;MQRC_DYNAMIC_Q_NAME_ERROR &nbsp; &nbsp; &nbsp;= 2011;<br> &nbsp;MQRC_ENVIRONMENT_ERROR &nbsp; &nbsp; &nbsp; &nbsp; = 2012;<br> &nbsp;MQRC_EXPIRY_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2013;<br> &nbsp;MQRC_FEEDBACK_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2014;<br> &nbsp;MQRC_GET_INHIBITED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2016;<br> &nbsp;MQRC_HANDLE_NOT_AVAILABLE &nbsp; &nbsp; &nbsp;= 2017;<br> &nbsp;MQRC_HCONN_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2018;<br> &nbsp;MQRC_HOBJ_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2019;<br> &nbsp;MQRC_INHIBIT_VALUE_ERROR &nbsp; &nbsp; &nbsp; = 2020;<br> &nbsp;MQRC_INT_ATTR_COUNT_ERROR &nbsp; &nbsp; &nbsp;= 2021;<br> &nbsp;MQRC_INT_ATTR_COUNT_TOO_SMALL &nbsp;= 2022;<br> &nbsp;MQRC_INT_ATTRS_ARRAY_ERROR &nbsp; &nbsp; = 2023;<br> &nbsp;MQRC_SYNCPOINT_LIMIT_REACHED &nbsp; = 2024;<br> &nbsp;MQRC_MAX_CONNS_LIMIT_REACHED &nbsp; = 2025;<br> &nbsp;MQRC_MD_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2026;<br> &nbsp;MQRC_MISSING_REPLY_TO_Q &nbsp; &nbsp; &nbsp; &nbsp;= 2027;<br> &nbsp;MQRC_MSG_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2029;<br> &nbsp;MQRC_MSG_TOO_BIG_FOR_Q &nbsp; &nbsp; &nbsp; &nbsp; = 2030;<br> &nbsp;MQRC_MSG_TOO_BIG_FOR_Q_MGR &nbsp; &nbsp; = 2031;<br> &nbsp;MQRC_NO_MSG_AVAILABLE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2033;<br> &nbsp;MQRC_NO_MSG_UNDER_CURSOR &nbsp; &nbsp; &nbsp; = 2034;<br> &nbsp;MQRC_NOT_AUTHORIZED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2035;<br> &nbsp;MQRC_NOT_OPEN_FOR_BROWSE &nbsp; &nbsp; &nbsp; = 2036;<br> &nbsp;MQRC_NOT_OPEN_FOR_INPUT &nbsp; &nbsp; &nbsp; &nbsp;= 2037;<br> &nbsp;MQRC_NOT_OPEN_FOR_INQUIRE &nbsp; &nbsp; &nbsp;= 2038;<br> &nbsp;MQRC_NOT_OPEN_FOR_OUTPUT &nbsp; &nbsp; &nbsp; = 2039;<br> &nbsp;MQRC_NOT_OPEN_FOR_SET &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2040;<br> &nbsp;MQRC_OBJECT_CHANGED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2041;<br> &nbsp;MQRC_OBJECT_IN_USE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2042;<br> &nbsp;MQRC_OBJECT_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; = 2043;<br> &nbsp;MQRC_OD_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2044;<br> &nbsp;MQRC_OPTION_NOT_VALID_FOR_TYPE = 2045;<br> &nbsp;MQRC_OPTIONS_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2046;<br> &nbsp;MQRC_PERSISTENCE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; = 2047;<br> &nbsp;MQRC_PERSISTENT_NOT_ALLOWED &nbsp; &nbsp;= 2048;<br> &nbsp;MQRC_PRIORITY_EXCEEDS_MAXIMUM &nbsp;= 2049;<br> &nbsp;MQRC_PRIORITY_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2050;<br> &nbsp;MQRC_PUT_INHIBITED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2051;<br> &nbsp;MQRC_Q_DELETED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2052;<br> &nbsp;MQRC_Q_FULL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2053;<br> &nbsp;MQRC_Q_NOT_EMPTY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2055;<br> &nbsp;MQRC_Q_SPACE_NOT_AVAILABLE &nbsp; &nbsp; = 2056;<br> &nbsp;MQRC_Q_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2057;<br> &nbsp;MQRC_Q_MGR_NAME_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2058;<br> &nbsp;MQRC_Q_MGR_NOT_AVAILABLE &nbsp; &nbsp; &nbsp; = 2059;<br> &nbsp;MQRC_REPORT_OPTIONS_ERROR &nbsp; &nbsp; &nbsp;= 2061;<br> &nbsp;MQRC_SECOND_MARK_NOT_ALLOWED &nbsp; = 2062;<br> &nbsp;MQRC_SECURITY_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2063;<br> &nbsp;MQRC_SELECTOR_COUNT_ERROR &nbsp; &nbsp; &nbsp;= 2065;<br> &nbsp;MQRC_SELECTOR_LIMIT_EXCEEDED &nbsp; = 2066;<br> &nbsp;MQRC_SELECTOR_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2067;<br> &nbsp;MQRC_SELECTOR_NOT_FOR_TYPE &nbsp; &nbsp; = 2068;<br> &nbsp;MQRC_SIGNAL_OUTSTANDING &nbsp; &nbsp; &nbsp; &nbsp;= 2069;<br> &nbsp;MQRC_SIGNAL_REQUEST_ACCEPTED &nbsp; = 2070;<br> &nbsp;MQRC_STORAGE_NOT_AVAILABLE &nbsp; &nbsp; = 2071;<br> &nbsp;MQRC_SYNCPOINT_NOT_AVAILABLE &nbsp; = 2072;<br> &nbsp;MQRC_TRIGGER_CONTROL_ERROR &nbsp; &nbsp; = 2075;<br> &nbsp;MQRC_TRIGGER_DEPTH_ERROR &nbsp; &nbsp; &nbsp; = 2076;<br> &nbsp;MQRC_TRIGGER_MSG_PRIORITY_ERR &nbsp;= 2077;<br> &nbsp;MQRC_TRIGGER_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp;= 2078;<br> &nbsp;MQRC_TRUNCATED_MSG_ACCEPTED &nbsp; &nbsp;= 2079;<br> &nbsp;MQRC_TRUNCATED_MSG_FAILED &nbsp; &nbsp; &nbsp;= 2080;<br> &nbsp;MQRC_UNKNOWN_ALIAS_BASE_Q &nbsp; &nbsp; &nbsp;= 2082;<br> &nbsp;MQRC_UNKNOWN_OBJECT_NAME &nbsp; &nbsp; &nbsp; = 2085;<br> &nbsp;MQRC_UNKNOWN_OBJECT_Q_MGR &nbsp; &nbsp; &nbsp;= 2086;<br> &nbsp;MQRC_UNKNOWN_REMOTE_Q_MGR &nbsp; &nbsp; &nbsp;= 2087;<br> &nbsp;MQRC_WAIT_INTERVAL_ERROR &nbsp; &nbsp; &nbsp; = 2090;<br> &nbsp;MQRC_XMIT_Q_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; = 2091;<br> &nbsp;MQRC_XMIT_Q_USAGE_ERROR &nbsp; &nbsp; &nbsp; &nbsp;= 2092;<br> &nbsp;MQRC_NOT_OPEN_FOR_PASS_ALL &nbsp; &nbsp; = 2093;<br> &nbsp;MQRC_NOT_OPEN_FOR_PASS_IDENT &nbsp; = 2094;<br> &nbsp;MQRC_NOT_OPEN_FOR_SET_ALL &nbsp; &nbsp; &nbsp;= 2095;<br> &nbsp;MQRC_NOT_OPEN_FOR_SET_IDENT &nbsp; &nbsp;= 2096;<br> &nbsp;MQRC_CONTEXT_HANDLE_ERROR &nbsp; &nbsp; &nbsp;= 2097;<br> &nbsp;MQRC_CONTEXT_NOT_AVAILABLE &nbsp; &nbsp; = 2098;<br> &nbsp;MQRC_SIGNAL1_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2099;<br> &nbsp;MQRC_OBJECT_ALREADY_EXISTS &nbsp; &nbsp; = 2100;<br> &nbsp;MQRC_OBJECT_DAMAGED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2101;<br> &nbsp;MQRC_RESOURCE_PROBLEM &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2102;<br> &nbsp;MQRC_ANOTHER_Q_MGR_CONNECTED &nbsp; = 2103;<br> &nbsp;MQRC_UNKNOWN_REPORT_OPTION &nbsp; &nbsp; = 2104;<br> &nbsp;MQRC_STORAGE_CLASS_ERROR &nbsp; &nbsp; &nbsp; = 2105;<br> &nbsp;MQRC_COD_NOT_VALID_FOR_XCF_Q &nbsp; = 2106;<br> &nbsp;MQRC_XWAIT_CANCELED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2107;<br> &nbsp;MQRC_XWAIT_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2108;<br> &nbsp;MQRC_SUPPRESSED_BY_EXIT &nbsp; &nbsp; &nbsp; &nbsp;= 2109;<br> &nbsp;MQRC_FORMAT_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2110;<br> &nbsp;MQRC_SOURCE_CCSID_ERROR &nbsp; &nbsp; &nbsp; &nbsp;= 2111;<br> &nbsp;MQRC_SOURCE_INTEGER_ENC_ERROR &nbsp;= 2112;<br> &nbsp;MQRC_SOURCE_DECIMAL_ENC_ERROR &nbsp;= 2113;<br> &nbsp;MQRC_SOURCE_FLOAT_ENC_ERROR &nbsp; &nbsp;= 2114;<br> &nbsp;MQRC_TARGET_CCSID_ERROR &nbsp; &nbsp; &nbsp; &nbsp;= 2115;<br> &nbsp;MQRC_TARGET_INTEGER_ENC_ERROR &nbsp;= 2116;<br> &nbsp;MQRC_TARGET_DECIMAL_ENC_ERROR &nbsp;= 2117;<br> &nbsp;MQRC_TARGET_FLOAT_ENC_ERROR &nbsp; &nbsp;= 2118;<br> &nbsp;MQRC_NOT_CONVERTED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2119;<br> &nbsp;MQRC_CONVERTED_MSG_TOO_BIG &nbsp; &nbsp; = 2120;<br> &nbsp;MQRC_TRUNCATED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2120; // This could be IBM error<br> &nbsp;MQRC_NO_EXTERNAL_PARTICIPANTS &nbsp;= 2121;<br> &nbsp;MQRC_PARTICIPANT_NOT_AVAILABLE = 2122;<br> &nbsp;MQRC_OUTCOME_MIXED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2123;<br> &nbsp;MQRC_OUTCOME_PENDING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2124;<br> &nbsp;MQRC_BRIDGE_STARTED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2125;<br> &nbsp;MQRC_BRIDGE_STOPPED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2126;<br> &nbsp;MQRC_ADAPTER_STORAGE_SHORTAGE &nbsp;= 2127;<br> &nbsp;MQRC_UOW_IN_PROGRESS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2128;<br> &nbsp;MQRC_ADAPTER_CONN_LOAD_ERROR &nbsp; = 2129;<br> &nbsp;MQRC_ADAPTER_SERV_LOAD_ERROR &nbsp; = 2130;<br> &nbsp;MQRC_ADAPTER_DEFS_ERROR &nbsp; &nbsp; &nbsp; &nbsp;= 2131;<br> &nbsp;MQRC_ADAPTER_DEFS_LOAD_ERROR &nbsp; = 2132;<br> &nbsp;MQRC_ADAPTER_CONV_LOAD_ERROR &nbsp; = 2133;<br> &nbsp;MQRC_BO_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2134;<br> &nbsp;MQRC_DH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2135;<br> &nbsp;MQRC_MULTIPLE_REASONS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2136;<br> &nbsp;MQRC_OPEN_FAILED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2137;<br> &nbsp;MQRC_ADAPTER_DISC_LOAD_ERROR &nbsp; = 2138;<br> &nbsp;MQRC_CNO_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2139;<br> &nbsp;MQRC_CICS_WAIT_FAILED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2140;<br> &nbsp;MQRC_DLH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2141;<br> &nbsp;MQRC_HEADER_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2142;<br> &nbsp;MQRC_SOURCE_LENGTH_ERROR &nbsp; &nbsp; &nbsp; = 2143;<br> &nbsp;MQRC_TARGET_LENGTH_ERROR &nbsp; &nbsp; &nbsp; = 2144;<br> &nbsp;MQRC_SOURCE_BUFFER_ERROR &nbsp; &nbsp; &nbsp; = 2145;<br> &nbsp;MQRC_TARGET_BUFFER_ERROR &nbsp; &nbsp; &nbsp; = 2146;<br> &nbsp;MQRC_IIH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2148;<br> &nbsp;MQRC_PCF_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2149;<br> &nbsp;MQRC_DBCS_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2150;<br> &nbsp;MQRC_OBJECT_NAME_ERROR &nbsp; &nbsp; &nbsp; &nbsp; = 2152;<br> &nbsp;MQRC_OBJECT_Q_MGR_NAME_ERROR &nbsp; = 2153;<br> &nbsp;MQRC_RECS_PRESENT_ERROR &nbsp; &nbsp; &nbsp; &nbsp;= 2154;<br> &nbsp;MQRC_OBJECT_RECORDS_ERROR &nbsp; &nbsp; &nbsp;= 2155;<br> &nbsp;MQRC_RESPONSE_RECORDS_ERROR &nbsp; &nbsp;= 2156;<br> &nbsp;MQRC_ASID_MISMATCH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2157;<br> &nbsp;MQRC_PMO_RECORD_FLAGS_ERROR &nbsp; &nbsp;= 2158;<br> &nbsp;MQRC_PUT_MSG_RECORDS_ERROR &nbsp; &nbsp; = 2159;<br> &nbsp;MQRC_CONN_ID_IN_USE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2160;<br> &nbsp;MQRC_Q_MGR_QUIESCING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2161;<br> &nbsp;MQRC_Q_MGR_STOPPING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2162;<br> &nbsp;MQRC_DUPLICATE_RECOV_COORD &nbsp; &nbsp; = 2163;<br> &nbsp;MQRC_PMO_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2173;<br> &nbsp;MQRC_API_EXIT_NOT_FOUND &nbsp; &nbsp; &nbsp; &nbsp;= 2182;<br> &nbsp;MQRC_API_EXIT_LOAD_ERROR &nbsp; &nbsp; &nbsp; = 2183;<br> &nbsp;MQRC_REMOTE_Q_NAME_ERROR &nbsp; &nbsp; &nbsp; = 2184;<br> &nbsp;MQRC_INCONSISTENT_PERSISTENCE &nbsp;= 2185;<br> &nbsp;MQRC_GMO_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2186;<br> &nbsp;MQRC_CICS_BRIDGE_RESTRICTION &nbsp; = 2187;<br> &nbsp;MQRC_STOPPED_BY_CLUSTER_EXIT &nbsp; = 2188;<br> &nbsp;MQRC_CLUSTER_RESOLUTION_ERROR &nbsp;= 2189;<br> &nbsp;MQRC_CONVERTED_STRING_TOO_BIG &nbsp;= 2190;<br> &nbsp;MQRC_TMC_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2191;<br> &nbsp;MQRC_PAGESET_FULL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2192;<br> &nbsp;MQRC_STORAGE_MEDIUM_FULL &nbsp; &nbsp; &nbsp; = 2192; // This could be IBM error<br> &nbsp;MQRC_PAGESET_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2193;<br> &nbsp;MQRC_NAME_NOT_VALID_FOR_TYPE &nbsp; = 2194;<br> &nbsp;MQRC_UNEXPECTED_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2195;<br> &nbsp;MQRC_UNKNOWN_XMIT_Q &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2196;<br> &nbsp;MQRC_UNKNOWN_DEF_XMIT_Q &nbsp; &nbsp; &nbsp; &nbsp;= 2197;<br> &nbsp;MQRC_DEF_XMIT_Q_TYPE_ERROR &nbsp; &nbsp; = 2198;<br> &nbsp;MQRC_DEF_XMIT_Q_USAGE_ERROR &nbsp; &nbsp;= 2199;<br> &nbsp;MQRC_NAME_IN_USE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2201;<br> &nbsp;MQRC_CONNECTION_QUIESCING &nbsp; &nbsp; &nbsp;= 2202;<br> &nbsp;MQRC_CONNECTION_STOPPING &nbsp; &nbsp; &nbsp; = 2203;<br> &nbsp;MQRC_ADAPTER_NOT_AVAILABLE &nbsp; &nbsp; = 2204;<br> &nbsp;MQRC_MSG_ID_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2206;<br> &nbsp;MQRC_CORREL_ID_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2207;<br> &nbsp;MQRC_FILE_SYSTEM_ERROR &nbsp; &nbsp; &nbsp; &nbsp; = 2208;<br> &nbsp;MQRC_NO_MSG_LOCKED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2209;<br> &nbsp;MQRC_FILE_NOT_AUDITED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2216;<br> &nbsp;MQRC_CONNECTION_NOT_AUTHORIZED = 2217;<br> &nbsp;MQRC_MSG_TOO_BIG_FOR_CHANNEL &nbsp; = 2218;<br> &nbsp;MQRC_CALL_IN_PROGRESS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2219;<br> &nbsp;MQRC_RMH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2220;<br> &nbsp;MQRC_Q_MGR_ACTIVE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2222;<br> &nbsp;MQRC_Q_MGR_NOT_ACTIVE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2223;<br> &nbsp;MQRC_Q_DEPTH_HIGH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2224;<br> &nbsp;MQRC_Q_DEPTH_LOW &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2225;<br> &nbsp;MQRC_Q_SERVICE_INTERVAL_HIGH &nbsp; = 2226;<br> &nbsp;MQRC_Q_SERVICE_INTERVAL_OK &nbsp; &nbsp; = 2227;<br> &nbsp;MQRC_UNIT_OF_WORK_NOT_STARTED &nbsp;= 2232;<br> &nbsp;MQRC_CHANNEL_AUTO_DEF_OK &nbsp; &nbsp; &nbsp; = 2233;<br> &nbsp;MQRC_CHANNEL_AUTO_DEF_ERROR &nbsp; &nbsp;= 2234;<br> &nbsp;MQRC_CFH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2235;<br> &nbsp;MQRC_CFIL_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2236;<br> &nbsp;MQRC_CFIN_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2237;<br> &nbsp;MQRC_CFSL_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2238;<br> &nbsp;MQRC_CFST_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2239;<br> &nbsp;MQRC_INCOMPLETE_GROUP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2241;<br> &nbsp;MQRC_INCOMPLETE_MSG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2242;<br> &nbsp;MQRC_INCONSISTENT_CCSIDS &nbsp; &nbsp; &nbsp; = 2243;<br> &nbsp;MQRC_INCONSISTENT_ENCODINGS &nbsp; &nbsp;= 2244;<br> &nbsp;MQRC_INCONSISTENT_UOW &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2245;<br> &nbsp;MQRC_INVALID_MSG_UNDER_CURSOR &nbsp;= 2246;<br> &nbsp;MQRC_MATCH_OPTIONS_ERROR &nbsp; &nbsp; &nbsp; = 2247;<br> &nbsp;MQRC_MDE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2248;<br> &nbsp;MQRC_MSG_FLAGS_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2249;<br> &nbsp;MQRC_MSG_SEQ_NUMBER_ERROR &nbsp; &nbsp; &nbsp;= 2250;<br> &nbsp;MQRC_OFFSET_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2251;<br> &nbsp;MQRC_ORIGINAL_LENGTH_ERROR &nbsp; &nbsp; = 2252;<br> &nbsp;MQRC_SEGMENT_LENGTH_ZERO &nbsp; &nbsp; &nbsp; = 2253;<br> &nbsp;MQRC_UOW_NOT_AVAILABLE &nbsp; &nbsp; &nbsp; &nbsp; = 2255;<br> &nbsp;MQRC_WRONG_GMO_VERSION &nbsp; &nbsp; &nbsp; &nbsp; = 2256;<br> &nbsp;MQRC_WRONG_MD_VERSION &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2257;<br> &nbsp;MQRC_GROUP_ID_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2258;<br> &nbsp;MQRC_INCONSISTENT_BROWSE &nbsp; &nbsp; &nbsp; = 2259;<br> &nbsp;MQRC_XQH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2260;<br> &nbsp;MQRC_SRC_ENV_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2261;<br> &nbsp;MQRC_SRC_NAME_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2262;<br> &nbsp;MQRC_DEST_ENV_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2263;<br> &nbsp;MQRC_DEST_NAME_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2264;<br> &nbsp;MQRC_TM_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2265;<br> &nbsp;MQRC_CLUSTER_EXIT_ERROR &nbsp; &nbsp; &nbsp; &nbsp;= 2266;<br> &nbsp;MQRC_CLUSTER_EXIT_LOAD_ERROR &nbsp; = 2267;<br> &nbsp;MQRC_CLUSTER_PUT_INHIBITED &nbsp; &nbsp; = 2268;<br> &nbsp;MQRC_CLUSTER_RESOURCE_ERROR &nbsp; &nbsp;= 2269;<br> &nbsp;MQRC_NO_DESTINATIONS_AVAILABLE = 2270;<br> &nbsp;MQRC_CONN_TAG_IN_USE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2271;<br> &nbsp;MQRC_PARTIALLY_CONVERTED &nbsp; &nbsp; &nbsp; = 2272;<br> &nbsp;MQRC_CONNECTION_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2273;<br> &nbsp;MQRC_OPTION_ENVIRONMENT_ERROR &nbsp;= 2274;<br> &nbsp;MQRC_CD_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2277;<br> &nbsp;MQRC_CLIENT_CONN_ERROR &nbsp; &nbsp; &nbsp; &nbsp; = 2278;<br> &nbsp;MQRC_CHANNEL_STOPPED_BY_USER &nbsp; = 2279;<br> &nbsp;MQRC_HCONFIG_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2280;<br> &nbsp;MQRC_FUNCTION_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2281;<br> &nbsp;MQRC_CHANNEL_STARTED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2282;<br> &nbsp;MQRC_CHANNEL_STOPPED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2283;<br> &nbsp;MQRC_CHANNEL_CONV_ERROR &nbsp; &nbsp; &nbsp; &nbsp;= 2284;<br> &nbsp;MQRC_SERVICE_NOT_AVAILABLE &nbsp; &nbsp; = 2285;<br> &nbsp;MQRC_INITIALIZATION_FAILED &nbsp; &nbsp; = 2286;<br> &nbsp;MQRC_TERMINATION_FAILED &nbsp; &nbsp; &nbsp; &nbsp;= 2287;<br> &nbsp;MQRC_UNKNOWN_Q_NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2288;<br> &nbsp;MQRC_SERVICE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2289;<br> &nbsp;MQRC_Q_ALREADY_EXISTS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2290;<br> &nbsp;MQRC_USER_ID_NOT_AVAILABLE &nbsp; &nbsp; = 2291;<br> &nbsp;MQRC_UNKNOWN_ENTITY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2292;<br> &nbsp;MQRC_UNKNOWN_AUTH_ENTITY &nbsp; &nbsp; &nbsp; = 2293;<br> &nbsp;MQRC_UNKNOWN_REF_OBJECT &nbsp; &nbsp; &nbsp; &nbsp;= 2294;<br> &nbsp;MQRC_CHANNEL_ACTIVATED &nbsp; &nbsp; &nbsp; &nbsp; = 2295;<br> &nbsp;MQRC_CHANNEL_NOT_ACTIVATED &nbsp; &nbsp; = 2296;<br> &nbsp;MQRC_UOW_CANCELED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2297;<br> &nbsp;MQRC_FUNCTION_NOT_SUPPORTED &nbsp; &nbsp;= 2298;<br> &nbsp;MQRC_SELECTOR_TYPE_ERROR &nbsp; &nbsp; &nbsp; = 2299;<br> &nbsp;MQRC_COMMAND_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp;= 2300;<br> &nbsp;MQRC_MULTIPLE_INSTANCE_ERROR &nbsp; = 2301;<br> &nbsp;MQRC_SYSTEM_ITEM_NOT_ALTERABLE = 2302;<br> &nbsp;MQRC_BAG_CONVERSION_ERROR &nbsp; &nbsp; &nbsp;= 2303;<br> &nbsp;MQRC_SELECTOR_OUT_OF_RANGE &nbsp; &nbsp; = 2304;<br> &nbsp;MQRC_SELECTOR_NOT_UNIQUE &nbsp; &nbsp; &nbsp; = 2305;<br> &nbsp;MQRC_INDEX_NOT_PRESENT &nbsp; &nbsp; &nbsp; &nbsp; = 2306;<br> &nbsp;MQRC_STRING_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2307;<br> &nbsp;MQRC_ENCODING_NOT_SUPPORTED &nbsp; &nbsp;= 2308;<br> &nbsp;MQRC_SELECTOR_NOT_PRESENT &nbsp; &nbsp; &nbsp;= 2309;<br> &nbsp;MQRC_OUT_SELECTOR_ERROR &nbsp; &nbsp; &nbsp; &nbsp;= 2310;<br> &nbsp;MQRC_STRING_TRUNCATED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2311;<br> &nbsp;MQRC_SELECTOR_WRONG_TYPE &nbsp; &nbsp; &nbsp; = 2312;<br> &nbsp;MQRC_INCONSISTENT_ITEM_TYPE &nbsp; &nbsp;= 2313;<br> &nbsp;MQRC_INDEX_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2314;<br> &nbsp;MQRC_SYSTEM_BAG_NOT_ALTERABLE &nbsp;= 2315;<br> &nbsp;MQRC_ITEM_COUNT_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2316;<br> &nbsp;MQRC_FORMAT_NOT_SUPPORTED &nbsp; &nbsp; &nbsp;= 2317;<br> &nbsp;MQRC_SELECTOR_NOT_SUPPORTED &nbsp; &nbsp;= 2318;<br> &nbsp;MQRC_ITEM_VALUE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2319;<br> &nbsp;MQRC_HBAG_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2320;<br> &nbsp;MQRC_PARAMETER_MISSING &nbsp; &nbsp; &nbsp; &nbsp; = 2321;<br> &nbsp;MQRC_CMD_SERVER_NOT_AVAILABLE &nbsp;= 2322;<br> &nbsp;MQRC_STRING_LENGTH_ERROR &nbsp; &nbsp; &nbsp; = 2323;<br> &nbsp;MQRC_INQUIRY_COMMAND_ERROR &nbsp; &nbsp; = 2324;<br> &nbsp;MQRC_NESTED_BAG_NOT_SUPPORTED &nbsp;= 2325;<br> &nbsp;MQRC_BAG_WRONG_TYPE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2326;<br> &nbsp;MQRC_ITEM_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2327;<br> &nbsp;MQRC_SYSTEM_BAG_NOT_DELETABLE &nbsp;= 2328;<br> &nbsp;MQRC_SYSTEM_ITEM_NOT_DELETABLE = 2329;<br> &nbsp;MQRC_CODED_CHAR_SET_ID_ERROR &nbsp; = 2330;<br> &nbsp;MQRC_MSG_TOKEN_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2331;<br> &nbsp;MQRC_MISSING_WIH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2332;<br> &nbsp;MQRC_WIH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2333;<br> &nbsp;MQRC_RFH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2334;<br> &nbsp;MQRC_RFH_STRING_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2335;<br> &nbsp;MQRC_RFH_COMMAND_ERROR &nbsp; &nbsp; &nbsp; &nbsp; = 2336;<br> &nbsp;MQRC_RFH_PARM_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2337;<br> &nbsp;MQRC_RFH_DUPLICATE_PARM &nbsp; &nbsp; &nbsp; &nbsp;= 2338;<br> &nbsp;MQRC_RFH_PARM_MISSING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2339;<br> &nbsp;MQRC_CHAR_CONVERSION_ERROR &nbsp; &nbsp; = 2340;<br> &nbsp;MQRC_UCS2_CONVERSION_ERROR &nbsp; &nbsp; = 2341;<br> &nbsp;MQRC_DB2_NOT_AVAILABLE &nbsp; &nbsp; &nbsp; &nbsp; = 2342;<br> &nbsp;MQRC_OBJECT_NOT_UNIQUE &nbsp; &nbsp; &nbsp; &nbsp; = 2343;<br> &nbsp;MQRC_CONN_TAG_NOT_RELEASED &nbsp; &nbsp; = 2344;<br> &nbsp;MQRC_CF_NOT_AVAILABLE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2345;<br> &nbsp;MQRC_CF_STRUC_IN_USE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2346;<br> &nbsp;MQRC_CF_STRUC_LIST_HDR_IN_USE &nbsp;= 2347;<br> &nbsp;MQRC_CF_STRUC_AUTH_FAILED &nbsp; &nbsp; &nbsp;= 2348;<br> &nbsp;MQRC_CF_STRUC_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2349;<br> &nbsp;MQRC_CONN_TAG_NOT_USABLE &nbsp; &nbsp; &nbsp; = 2350;<br> &nbsp;MQRC_GLOBAL_UOW_CONFLICT &nbsp; &nbsp; &nbsp; = 2351;<br> &nbsp;MQRC_LOCAL_UOW_CONFLICT &nbsp; &nbsp; &nbsp; &nbsp;= 2352;<br> &nbsp;MQRC_HANDLE_IN_USE_FOR_UOW &nbsp; &nbsp; = 2353;<br> &nbsp;MQRC_UOW_ENLISTMENT_ERROR &nbsp; &nbsp; &nbsp;= 2354;<br> &nbsp;MQRC_UOW_MIX_NOT_SUPPORTED &nbsp; &nbsp; = 2355;<br> &nbsp;MQRC_WXP_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 2356;<br> &nbsp;MQRC_CURRENT_RECORD_ERROR &nbsp; &nbsp; &nbsp;= 2357;<br> &nbsp;MQRC_NEXT_OFFSET_ERROR &nbsp; &nbsp; &nbsp; &nbsp; = 2358;<br> &nbsp;MQRC_NO_RECORD_AVAILABLE &nbsp; &nbsp; &nbsp; = 2359;<br> &nbsp;MQRC_OBJECT_LEVEL_INCOMPATIBLE = 2360;<br> &nbsp;MQRC_NEXT_RECORD_ERROR &nbsp; &nbsp; &nbsp; &nbsp; = 2361;<br><br> &nbsp;MQRC_APPL_FIRST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 900;<br> &nbsp;MQRC_APPL_LAST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 999;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to Queue Attributes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Queue Types *)<br> &nbsp;MQQT_LOCAL &nbsp; &nbsp; = 1;<br> &nbsp;MQQT_MODEL &nbsp; &nbsp; = 2;<br> &nbsp;MQQT_ALIAS &nbsp; &nbsp; = 3;<br> &nbsp;MQQT_REMOTE &nbsp; &nbsp;= 6;<br> &nbsp;MQQT_CLUSTER &nbsp; = 7;<br><br> &nbsp;(* Cluster Queue Types *)<br> &nbsp;MQCQT_LOCAL_Q &nbsp; &nbsp; = 1;<br> &nbsp;MQCQT_ALIAS_Q &nbsp; &nbsp; = 2;<br> &nbsp;MQCQT_REMOTE_Q &nbsp; &nbsp;= 3;<br> &nbsp;MQCQT_Q_MGR_ALIAS = 4;<br><br> &nbsp;(* Extended Queue Types *)<br> &nbsp;MQQT_ALL = 1001;<br><br> &nbsp;(* Queue Definition Types *)<br> &nbsp;MQQDT_PREDEFINED &nbsp; &nbsp; &nbsp; &nbsp;= 1;<br> &nbsp;MQQDT_PERMANENT_DYNAMIC = 2;<br> &nbsp;MQQDT_TEMPORARY_DYNAMIC = 3;<br> &nbsp;MQQDT_SHARED_DYNAMIC &nbsp; &nbsp;= 4;<br><br> &nbsp;(* Inhibit Get *)<br> &nbsp;MQQA_GET_INHIBITED = 1;<br> &nbsp;MQQA_GET_ALLOWED &nbsp; = 0;<br><br> &nbsp;(* Inhibit Put *)<br> &nbsp;MQQA_PUT_INHIBITED = 1;<br> &nbsp;MQQA_PUT_ALLOWED &nbsp; = 0;<br><br> &nbsp;(* Queue Shareability *)<br> &nbsp;MQQA_SHAREABLE &nbsp; &nbsp; = 1;<br> &nbsp;MQQA_NOT_SHAREABLE = 0;<br><br> &nbsp;(* Back-Out Hardening *)<br> &nbsp;MQQA_BACKOUT_HARDENED &nbsp; &nbsp; = 1;<br> &nbsp;MQQA_BACKOUT_NOT_HARDENED = 0;<br><br> &nbsp;(* Message Delivery Sequence *)<br> &nbsp;MQMDS_PRIORITY = 0;<br> &nbsp;MQMDS_FIFO &nbsp; &nbsp; = 1;<br><br> &nbsp;(* Trigger Control *)<br> &nbsp;MQTC_OFF = 0;<br> &nbsp;MQTC_ON &nbsp;= 1;<br><br> &nbsp;(* Trigger Types *)<br> &nbsp;MQTT_NONE &nbsp;= 0;<br> &nbsp;MQTT_FIRST = 1;<br> &nbsp;MQTT_EVERY = 2;<br> &nbsp;MQTT_DEPTH = 3;<br><br> &nbsp;(* Queue Usage *)<br> &nbsp;MQUS_NORMAL &nbsp; &nbsp; &nbsp; = 0;<br> &nbsp;MQUS_TRANSMISSION = 1;<br><br> &nbsp;(* Distribution Lists *)<br> &nbsp;MQDL_SUPPORTED &nbsp; &nbsp; = 1;<br> &nbsp;MQDL_NOT_SUPPORTED = 0;<br><br> &nbsp;(* Index Type *)<br> &nbsp;MQIT_NONE &nbsp; &nbsp; &nbsp;= 0;<br> &nbsp;MQIT_MSG_ID &nbsp; &nbsp;= 1;<br> &nbsp;MQIT_CORREL_ID = 2;<br> &nbsp;MQIT_MSG_TOKEN = 4;<br><br> &nbsp;(* Default Bind *)<br> &nbsp;MQBND_BIND_ON_OPEN &nbsp; = 0;<br> &nbsp;MQBND_BIND_NOT_FIXED = 1;<br><br> &nbsp;(* Queue Sharing Group Disposition *)<br> &nbsp;MQQSGD_Q_MGR &nbsp;= 0;<br> &nbsp;MQQSGD_COPY &nbsp; = 1;<br> &nbsp;MQQSGD_SHARED = 2;<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to Namelist Attributes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Name Count *)<br> &nbsp;MQNC_MAX_NAMELIST_NAME_COUNT = 256;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to Process-Definition Attributes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Application Types *)<br> &nbsp;(* See values for &quot;Put Application Types&quot; under MQMD *)<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Values Related to Queue-Manager Attributes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Command Level *)<br> &nbsp;MQCMDL_LEVEL_1 &nbsp; = 100;<br> &nbsp;MQCMDL_LEVEL_101 = 101;<br> &nbsp;MQCMDL_LEVEL_110 = 110;<br> &nbsp;MQCMDL_LEVEL_114 = 114;<br> &nbsp;MQCMDL_LEVEL_120 = 120;<br> &nbsp;MQCMDL_LEVEL_200 = 200;<br> &nbsp;MQCMDL_LEVEL_201 = 201;<br> &nbsp;MQCMDL_LEVEL_210 = 210;<br> &nbsp;MQCMDL_LEVEL_220 = 220;<br> &nbsp;MQCMDL_LEVEL_221 = 221;<br> &nbsp;MQCMDL_LEVEL_320 = 320;<br> &nbsp;MQCMDL_LEVEL_420 = 420;<br> &nbsp;MQCMDL_LEVEL_500 = 500;<br> &nbsp;MQCMDL_LEVEL_510 = 510;<br> &nbsp;MQCMDL_LEVEL_520 = 520;<br><br> &nbsp;(* Platform *)<br> &nbsp;MQPL_MVS &nbsp; &nbsp; &nbsp; &nbsp;= 1;<br> &nbsp;MQPL_OS390 &nbsp; &nbsp; &nbsp;= 1;<br> &nbsp;MQPL_OS2 &nbsp; &nbsp; &nbsp; &nbsp;= 2;<br> &nbsp;MQPL_AIX &nbsp; &nbsp; &nbsp; &nbsp;= 3;<br> &nbsp;MQPL_UNIX &nbsp; &nbsp; &nbsp; = 3;<br> &nbsp;MQPL_OS400 &nbsp; &nbsp; &nbsp;= 4;<br> &nbsp;MQPL_WINDOWS &nbsp; &nbsp;= 5;<br> &nbsp;MQPL_WINDOWS_NT = 11;<br> &nbsp;MQPL_VMS &nbsp; &nbsp; &nbsp; &nbsp;= 12;<br> &nbsp;MQPL_NSK &nbsp; &nbsp; &nbsp; &nbsp;= 13;<br><br> &nbsp;(* Syncpoint Availability *)<br> &nbsp;MQSP_AVAILABLE &nbsp; &nbsp; = 1;<br> &nbsp;MQSP_NOT_AVAILABLE = 0;<br><br> &nbsp;(* Channel Auto Definition *)<br> &nbsp;MQCHAD_DISABLED = 0;<br> &nbsp;MQCHAD_ENABLED &nbsp;= 1;<br><br> &nbsp;(* Intra-Group Queuing *)<br> &nbsp;MQIGQ_DISABLED = 0;<br> &nbsp;MQIGQ_ENABLED &nbsp;= 1;<br><br> &nbsp;(* Intra-Group Queuing Put Authority *)<br> &nbsp;MQIGQPA_DEFAULT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 1;<br> &nbsp;MQIGQPA_CONTEXT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 2;<br> &nbsp;MQIGQPA_ONLY_IGQ &nbsp; &nbsp; &nbsp; &nbsp; = 3;<br> &nbsp;MQIGQPA_ALTERNATE_OR_IGQ = 4;<br><br> &nbsp;(* Distribution Lists *)<br> &nbsp;(* See values for &quot;Distribution Lists&quot; under Queue Attributes *)<br><br><br>type<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;Simple Data Types &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;(* Function Entry-Point and Pointer Attributes *)<br>// &nbsp;MQENTRY &nbsp; __cdecl<br> &nbsp;MQPOINTER = Pointer;<br><br> &nbsp;(* Byte Datatypes *)<br> &nbsp;MQBYTE = byte;<br> &nbsp;PMQBYTE = ^MQBYTE;<br> &nbsp;MQBYTE8 = array [0..7] of MQBYTE;<br> &nbsp;PMQBYTE8 = ^MQBYTE8;<br> &nbsp;MQBYTE16 = array [0..15] of MQBYTE;<br> &nbsp;PMQBYTE16 = ^MQBYTE16;<br> &nbsp;MQBYTE24 = array [0..23] of MQBYTE;<br> &nbsp;PMQBYTE24 = ^MQBYTE24;<br> &nbsp;MQBYTE32 = array [0..31] of MQBYTE;<br> &nbsp;PMQBYTE32 = ^MQBYTE32;<br> &nbsp;MQBYTE40 = array [0..39] of MQBYTE;<br> &nbsp;PMQBYTE40 = ^MQBYTE40;<br> &nbsp;MQBYTE128 = array [0..127] of MQBYTE;<br> &nbsp;PMQBYTE128 = ^MQBYTE128;<br><br> &nbsp;(* Character Datatypes *)<br> &nbsp;MQCHAR = char;<br> &nbsp;PMQCHAR = ^MQCHAR;<br> &nbsp;MQCHAR4 = array[0..3] of MQCHAR;<br> &nbsp;PMQCHAR4 = ^MQCHAR4;<br> &nbsp;MQCHAR8 = array[0..7] of MQCHAR;<br> &nbsp;PMQCHAR8 = ^MQCHAR8;<br> &nbsp;MQCHAR12 = array[0..11] of MQCHAR;<br> &nbsp;PMQCHAR12 = ^MQCHAR12;<br> &nbsp;MQCHAR20 = array[0..19] of MQCHAR;<br> &nbsp;PMQCHAR20 = ^MQCHAR20;<br> &nbsp;MQCHAR28 = array[0..27] of MQCHAR;<br> &nbsp;PMQCHAR28 = ^MQCHAR28;<br> &nbsp;MQCHAR32 = array[0..31] of MQCHAR;<br> &nbsp;PMQCHAR32 = ^MQCHAR32;<br> &nbsp;MQCHAR48 = array[0..47] of MQCHAR;<br> &nbsp;PMQCHAR48 = ^MQCHAR48;<br> &nbsp;MQCHAR64 = array[0..63] of MQCHAR;<br> &nbsp;PMQCHAR64 = ^MQCHAR64;<br> &nbsp;MQCHAR128 = array[0..127] of MQCHAR;<br> &nbsp;PMQCHAR128 = ^MQCHAR128;<br> &nbsp;MQCHAR256 = array[0..255] of MQCHAR;<br> &nbsp;PMQCHAR256 = ^MQCHAR256;<br><br> &nbsp;(* Other Datatypes *)<br> &nbsp;MQLONG = Longint;<br> &nbsp;PMQLONG = ^MQLONG;<br> &nbsp;MQHCONN = MQLONG;<br> &nbsp;PMQHCONN = ^MQHCONN;<br> &nbsp;MQHOBJ = MQLONG ;<br> &nbsp;PMQHOBJ = ^MQHOBJ;<br> &nbsp;MQPTR = ^Pointer;<br> &nbsp;PMQPTR = ^MQPTR;<br> &nbsp;PMQVOID = ^Pointer;<br> &nbsp;PPMQVOID = ^Pointer ;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQBO Structure -- Begin Options &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br><br> &nbsp;TMQBO = record<br> &nbsp; &nbsp;StrucId: MQCHAR4; &nbsp;(* Structure identifier *)<br> &nbsp; &nbsp;Version: MQLONG; &nbsp; (* Structure version number *)<br> &nbsp; &nbsp;Options: MQLONG; &nbsp; (* Options that control the action of MQBEGIN *)<br> &nbsp;end;<br> &nbsp;PMQBO = ^TMQBO;<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQCIH Structure -- CICS Information Header &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br><br> &nbsp;TMQCIH = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure version number *)<br> &nbsp; &nbsp;StrucLength : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Length of MQCIH structure *)<br> &nbsp; &nbsp;Encoding : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Reserved *)<br> &nbsp; &nbsp;CodedCharSetId : MQLONG; &nbsp; &nbsp; &nbsp; (* Reserved *)<br> &nbsp; &nbsp;Format : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* MQ format name of data that follows<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MQCIH *)<br> &nbsp; &nbsp;Flags : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Flags *)<br> &nbsp; &nbsp;ReturnCode : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Return code from bridge *)<br> &nbsp; &nbsp;CompCode : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* MQ completion code or CICS<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EIBRESP *)<br> &nbsp; &nbsp;Reason : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* MQ reason or feedback code, or CICS<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EIBRESP2 *)<br> &nbsp; &nbsp;UOWControl : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Unit-of-work control *)<br> &nbsp; &nbsp;GetWaitInterval : MQLONG; &nbsp; &nbsp; &nbsp;(* Wait interval for MQGET call issued<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;by bridge task *)<br> &nbsp; &nbsp;LinkType : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Link type *)<br> &nbsp; &nbsp;OutputDataLength : MQLONG; &nbsp; &nbsp; (* Output COMMAREA data length *)<br> &nbsp; &nbsp;FacilityKeepTime : MQLONG; &nbsp; &nbsp; (* Bridge facility release time *)<br> &nbsp; &nbsp;ADSDescriptor : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp;(* Send/receive ADS descriptor *)<br> &nbsp; &nbsp;ConversationalTask : MQLONG; &nbsp; (* Whether task can be conversational *)<br> &nbsp; &nbsp;TaskEndStatus : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp;(* Status at end of task *)<br> &nbsp; &nbsp;Facility : MQBYTE8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Bridge facility token *)<br> &nbsp; &nbsp;Function_ : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* MQ call name or CICS EIBFN<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;function *)<br> &nbsp; &nbsp;AbendCode : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Abend code *)<br> &nbsp; &nbsp;Authenticator : MQCHAR8; &nbsp; &nbsp; &nbsp; (* Password or passticket *)<br> &nbsp; &nbsp;Reserved1 : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Reserved *)<br> &nbsp; &nbsp;ReplyToFormat : MQCHAR8; &nbsp; &nbsp; &nbsp; (* MQ format name of reply message *)<br> &nbsp; &nbsp;RemoteSysId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; (* Reserved *)<br> &nbsp; &nbsp;RemoteTransId : MQCHAR4; &nbsp; &nbsp; &nbsp; (* Reserved *)<br> &nbsp; &nbsp;TransactionId : MQCHAR4; &nbsp; &nbsp; &nbsp; (* Transaction to attach *)<br> &nbsp; &nbsp;FacilityLike : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp;(* Terminal emulated attributes *)<br> &nbsp; &nbsp;AttentionId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; (* AID key *)<br> &nbsp; &nbsp;StartCode : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Transaction start code *)<br> &nbsp; &nbsp;CancelCode : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Abend transaction code *)<br> &nbsp; &nbsp;NextTransactionId : MQCHAR4; &nbsp; (* Next transaction to attach *)<br> &nbsp; &nbsp;Reserved2 : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Reserved *)<br> &nbsp; &nbsp;Reserved3 : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Reserved *)<br> &nbsp; &nbsp;CursorPosition : MQLONG; &nbsp; &nbsp; &nbsp; (* Cursor position *)<br> &nbsp; &nbsp;ErrorOffset : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Offset of error in message *)<br> &nbsp; &nbsp;InputItem : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Reserved *)<br> &nbsp; &nbsp;Reserved4 : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Reserved *)<br> &nbsp;end;<br> &nbsp;PMQCIH = ^TMQCIH;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQCNO Structure -- Connect Options &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQCNO = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure version number *)<br> &nbsp; &nbsp;Options : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Options that control the action of<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MQCONNX *)<br> &nbsp; &nbsp;ClientConnOffset : MQLONG; &nbsp; (* Offset of MQCD structure for<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;client connection *)<br> &nbsp; &nbsp;ClientConnPtr : MQPTR; &nbsp; &nbsp; &nbsp; (* Address of MQCD structure for<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;client connection *)<br> &nbsp;end;<br> &nbsp;PMQCNO = ^TMQCNO;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQDH Structure -- Distribution Header &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQDH = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure version number *)<br> &nbsp; &nbsp;StrucLength : MQLONG; &nbsp; &nbsp; &nbsp; (* Length of MQDH structure plus following<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; records *)<br> &nbsp; &nbsp;Encoding : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Numeric encoding of data that follows<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array of MQPMR records *)<br> &nbsp; &nbsp;CodedCharSetId : MQLONG; &nbsp; &nbsp;(* Character set identifier of data that<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; follows array of MQPMR records *)<br> &nbsp; &nbsp;Format : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Format name of data that follows<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array of MQPMR records *)<br> &nbsp; &nbsp;Flags : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* General flags *)<br> &nbsp; &nbsp;PutMsgRecFields : MQLONG; &nbsp; (* Flags indicating which MQPMR<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fields are present *)<br> &nbsp; &nbsp;RecsPresent : MQLONG; &nbsp; &nbsp; &nbsp; (* Number of object records present *)<br> &nbsp; &nbsp;ObjectRecOffset : MQLONG; &nbsp; (* Offset of first object record from<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; start of MQDH *)<br> &nbsp; &nbsp;PutMsgRecOffset : MQLONG; &nbsp; (* Offset of first put message record<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from start of MQDH *)<br> &nbsp;end;<br> &nbsp;PMQDH = ^TMQDH;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQDLH Structure -- Dead Letter Header &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQDLH = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure version number *)<br> &nbsp; &nbsp;Reason &nbsp;: MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Reason message arrived on dead-letter<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (undelivered-message) queue *)<br> &nbsp; &nbsp;DestQName : MQCHAR48; &nbsp; &nbsp; &nbsp; (* Name of original destination queue *)<br> &nbsp; &nbsp;DestQMgrName : MQCHAR48; &nbsp; &nbsp;(* Name of original destination queue<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; manager *)<br> &nbsp; &nbsp;Encoding : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Numeric encoding of data that follows<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MQDLH *)<br> &nbsp; &nbsp;CodedCharSetId : MQLONG; &nbsp; &nbsp;(* Character set identifier of data that<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; follows MQDLH *)<br> &nbsp; &nbsp;Format : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Format name of data that follows<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MQDLH *)<br> &nbsp; &nbsp;PutApplType : MQLONG; &nbsp; &nbsp; &nbsp; (* Type of application that put message on<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dead-letter (undelivered-message)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; queue *)<br> &nbsp; &nbsp;PutApplName : MQCHAR28; &nbsp; &nbsp; (* Name of application that put message on<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dead-letter (undelivered-message)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; queue *)<br> &nbsp; &nbsp;PutDate : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Date when message was put on<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dead-letter (undelivered-message)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; queue *)<br> &nbsp; &nbsp;PutTime : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Time when message was put on the<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dead-letter (undelivered-message)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; queue *)<br> &nbsp;end;<br> &nbsp;PMQDLH = ^TMQDLH;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQGMO Structure -- Get Message Options &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQGMO = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure version number *)<br> &nbsp; &nbsp;Options : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Options that control the action of<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MQGET *)<br> &nbsp; &nbsp;WaitInterval : MQLONG; &nbsp; &nbsp; &nbsp;(* Wait interval *)<br> &nbsp; &nbsp;Signal1 : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Signal *)<br> &nbsp; &nbsp;Signal2 : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Signal identifier *)<br> &nbsp; &nbsp;ResolvedQName : MQCHAR48; &nbsp; (* Resolved name of destination queue *)<br> &nbsp; &nbsp;MatchOptions : MQLONG; &nbsp; &nbsp; &nbsp;(* Options controlling selection criteria<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; used for MQGET *)<br> &nbsp; &nbsp;GroupStatus : MQCHAR; &nbsp; &nbsp; &nbsp; (* Flag indicating whether message<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; retrieved is in a group *)<br> &nbsp; &nbsp;SegmentStatus : MQCHAR; &nbsp; &nbsp; (* Flag indicating whether message<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; retrieved is a segment of a logical<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message *)<br> &nbsp; &nbsp;Segmentation : MQCHAR; &nbsp; &nbsp; &nbsp;(* Flag indicating whether further<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; segmentation is allowed for the message<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; retrieved *)<br> &nbsp; &nbsp;Reserved1 : MQCHAR; &nbsp; &nbsp; &nbsp; &nbsp; (* Reserved *)<br> &nbsp; &nbsp;MsgToken : MQBYTE16; &nbsp; &nbsp; &nbsp; &nbsp;(* Message token *)<br> &nbsp; &nbsp;ReturnedLength : MQLONG; &nbsp; &nbsp;(* Length of message data returned<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(bytes) *)<br> &nbsp;end;<br> &nbsp;PMQGMO = ^TMQGMO;<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQIIH Structure -- IMS Information Header &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQIIH = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure version number *)<br> &nbsp; &nbsp;StrucLength : MQLONG; &nbsp; &nbsp; &nbsp; (* Length of MQIIH structure *)<br> &nbsp; &nbsp;Encoding : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Reserved *)<br> &nbsp; &nbsp;CodedCharSetId : MQLONG; &nbsp; &nbsp;(* Reserved *)<br> &nbsp; &nbsp;Format : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* MQ format name of data that follows<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MQIIH *)<br> &nbsp; &nbsp;Flags : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Flags *)<br> &nbsp; &nbsp;LTermOverride : MQCHAR8; &nbsp; &nbsp;(* Logical terminal override *)<br> &nbsp; &nbsp;MFSMapName : MQCHAR8; &nbsp; &nbsp; &nbsp; (* Message format services map name *)<br> &nbsp; &nbsp;ReplyToFormat : MQCHAR8; &nbsp; &nbsp;(* MQ format name of reply message *)<br> &nbsp; &nbsp;Authenticator : MQCHAR8; &nbsp; &nbsp;(* RACF password or passticket *)<br> &nbsp; &nbsp;TranInstanceId : MQBYTE16; &nbsp;(* Transaction instance identifier *)<br> &nbsp; &nbsp;TranState : MQCHAR; &nbsp; &nbsp; &nbsp; &nbsp; (* Transaction state *)<br> &nbsp; &nbsp;CommitMode : MQCHAR; &nbsp; &nbsp; &nbsp; &nbsp;(* Commit mode *)<br> &nbsp; &nbsp;SecurityScope : MQCHAR; &nbsp; &nbsp; (* Security scope *)<br> &nbsp; &nbsp;Reserved : MQCHAR; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Reserved *)<br> &nbsp;end;<br> &nbsp;PMQIIH = ^TMQIIH;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQMD Structure -- Message Descriptor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQMD = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure version number *)<br> &nbsp; &nbsp;Report : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Options for report messages *)<br> &nbsp; &nbsp;MsgType : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Message type *)<br> &nbsp; &nbsp;Expiry : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Message lifetime *)<br> &nbsp; &nbsp;Feedback : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Feedback or reason code *)<br> &nbsp; &nbsp;Encoding : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Numeric encoding of message data *)<br> &nbsp; &nbsp;CodedCharSetId : MQLONG; &nbsp; &nbsp; (* Character set identifier of message<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data *)<br> &nbsp; &nbsp;Format : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Format name of message data *)<br> &nbsp; &nbsp;Priority : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Message priority *)<br> &nbsp; &nbsp;Persistence : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp;(* Message persistence *)<br> &nbsp; &nbsp;MsgId : MQBYTE24; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Message identifier *)<br> &nbsp; &nbsp;CorrelId : MQBYTE24; &nbsp; &nbsp; &nbsp; &nbsp; (* Correlation identifier *)<br> &nbsp; &nbsp;BackoutCount : MQLONG; &nbsp; &nbsp; &nbsp; (* Backout counter *)<br> &nbsp; &nbsp;ReplyToQ : MQCHAR48; &nbsp; &nbsp; &nbsp; &nbsp; (* Name of reply queue *)<br> &nbsp; &nbsp;ReplyToQMgr : MQCHAR48; &nbsp; &nbsp; &nbsp;(* Name of reply queue manager *)<br> &nbsp; &nbsp;UserIdentifier : MQCHAR12; &nbsp; (* User identifier *)<br> &nbsp; &nbsp;AccountingToken : MQBYTE32; &nbsp;(* Accounting token *)<br> &nbsp; &nbsp;ApplIdentityData : MQCHAR32; (* Application data relating to<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;identity *)<br> &nbsp; &nbsp;PutApplType : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp;(* Type of application that put the<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;message *)<br> &nbsp; &nbsp;PutApplName : MQCHAR28; &nbsp; &nbsp; &nbsp;(* Name of application that put the<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;message *)<br> &nbsp; &nbsp;PutDate : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Date when message was put *)<br> &nbsp; &nbsp;PutTime : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Time when message was put *)<br> &nbsp; &nbsp;ApplOriginData : MQCHAR4; &nbsp; &nbsp;(* Application data relating to<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;origin *)<br> &nbsp; &nbsp;GroupId : MQBYTE24; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Group identifier *)<br> &nbsp; &nbsp;MsgSeqNumber : MQLONG; &nbsp; &nbsp; &nbsp; (* Sequence number of logical message<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; within group *)<br> &nbsp; &nbsp;Offset : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Offset of data in physical message<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from start of logical message *)<br> &nbsp; &nbsp;MsgFlags : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Message flags *)<br> &nbsp; &nbsp;OriginalLength: MQLONG; &nbsp; &nbsp; &nbsp;(* Length of original message *)<br> &nbsp;end;<br> &nbsp;PMQMD = ^TMQMD;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQMDE Structure -- Message Descriptor Extension &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQMDE = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure version number *)<br> &nbsp; &nbsp;StrucLength : MQLONG; &nbsp; &nbsp; &nbsp;(* Length of MQMDE structure *)<br> &nbsp; &nbsp;Encoding : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; (* Numeric encoding of data that follows<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MQMDE *)<br> &nbsp; &nbsp;CodedCharSetId : MQLONG; &nbsp; (* Character-set identifier of data that<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;follows MQMDE *)<br> &nbsp; &nbsp;Format : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Format name of data that follows<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MQMDE *)<br> &nbsp; &nbsp;Flags : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* General flags *)<br> &nbsp; &nbsp;GroupId : MQBYTE24; &nbsp; &nbsp; &nbsp; &nbsp;(* Group identifier *)<br> &nbsp; &nbsp;MsgSeqNumber : MQLONG; &nbsp; &nbsp; (* Sequence number of logical message<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;within group *)<br> &nbsp; &nbsp;Offset : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Offset of data in physical message from<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;start of logical message *)<br> &nbsp; &nbsp;MsgFlags : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; (* Message flags *)<br> &nbsp; &nbsp;OriginalLength : MQLONG; &nbsp; (* Length of original message *)<br> &nbsp;end;<br> &nbsp;PMQMDE = ^TMQMDE;<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQMD1 Structure -- Version-1 Message Descriptor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQMD1 = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure version number *)<br> &nbsp; &nbsp;Report : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Report options *)<br> &nbsp; &nbsp;MsgType : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Message type *)<br> &nbsp; &nbsp;Expiry : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Expiry time *)<br> &nbsp; &nbsp;Feedback : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Feedback or reason code *)<br> &nbsp; &nbsp;Encoding : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Numeric encoding of message data *)<br> &nbsp; &nbsp;CodedCharSetId : MQLONG; &nbsp; &nbsp; &nbsp;(* Character set identifier of message<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data *)<br> &nbsp; &nbsp;Format : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Format name of message data *)<br> &nbsp; &nbsp;Priority : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Message priority *)<br> &nbsp; &nbsp;Persistence : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; (* Message persistence *)<br> &nbsp; &nbsp;MsgId : MQBYTE24; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Message identifier *)<br> &nbsp; &nbsp;CorrelId : MQBYTE24; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Correlation identifier *)<br> &nbsp; &nbsp;BackoutCount : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp;(* Backout counter *)<br> &nbsp; &nbsp;ReplyToQ : MQCHAR48; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Name of reply-to queue *)<br> &nbsp; &nbsp;ReplyToQMgr : MQCHAR48; &nbsp; &nbsp; &nbsp; (* Name of reply queue manager *)<br> &nbsp; &nbsp;UserIdentifier : MQCHAR12; &nbsp; &nbsp;(* User identifier *)<br> &nbsp; &nbsp;AccountingToken : MQBYTE32; &nbsp; (* Accounting token *)<br> &nbsp; &nbsp;ApplIdentityData : MQCHAR32; &nbsp;(* Application data relating to<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; identity *)<br> &nbsp; &nbsp;PutApplType : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; (* Type of application that put the<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message *)<br> &nbsp; &nbsp;PutApplName : MQCHAR28; &nbsp; &nbsp; &nbsp; (* Name of application that put the<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message *)<br> &nbsp; &nbsp;PutDate : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Date when message was put *)<br> &nbsp; &nbsp;PutTime : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Time when message was put *)<br> &nbsp; &nbsp;ApplOriginData : MQCHAR4; &nbsp; &nbsp; (* Application data relating to<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;origin *)<br> &nbsp;end;<br> &nbsp;PMQMD1 = ^TMQMD1;<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQOD Structure -- Object Descriptor &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQOD = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure version number *)<br> &nbsp; &nbsp;ObjectType : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Object type *)<br> &nbsp; &nbsp;ObjectName : MQCHAR48; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Object name *)<br> &nbsp; &nbsp;ObjectQMgrName : MQCHAR48; &nbsp; &nbsp; &nbsp; (* Object queue manager name *)<br> &nbsp; &nbsp;DynamicQName : MQCHAR48; &nbsp; &nbsp; &nbsp; &nbsp; (* Dynamic queue name *)<br> &nbsp; &nbsp;AlternateUserId : MQCHAR12; &nbsp; &nbsp; &nbsp;(* Alternate user identifier *)<br> &nbsp; &nbsp;RecsPresent : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Number of object records<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;present *)<br> &nbsp; &nbsp;KnownDestCount : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; (* Number of local queues opened<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;successfully *)<br> &nbsp; &nbsp;UnknownDestCount : MQLONG; &nbsp; &nbsp; &nbsp; (* Number of remote queues opened<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;successfully *)<br> &nbsp; &nbsp;InvalidDestCount : MQLONG; &nbsp; &nbsp; &nbsp; (* Number of queues that failed to<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;open *)<br> &nbsp; &nbsp;ObjectRecOffset : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp;(* Offset of first object record from<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;start of MQOD *)<br> &nbsp; &nbsp;ResponseRecOffset : MQLONG; &nbsp; &nbsp; &nbsp;(* Offset of first response record<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from start of MQOD *)<br> &nbsp; &nbsp;ObjectRecPtr : MQPTR; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Address of first object record *)<br> &nbsp; &nbsp;ResponseRecPtr : MQPTR; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Address of first response<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;record *)<br> &nbsp; &nbsp;AlternateSecurityId : MQBYTE40; &nbsp;(* Alternate security identifier *)<br> &nbsp; &nbsp;ResolvedQName : MQCHAR48; &nbsp; &nbsp; &nbsp; &nbsp;(* Resolved queue name *)<br> &nbsp; &nbsp;ResolvedQMgrName : MQCHAR48; &nbsp; &nbsp; (* Resolved queue manager name *)<br> &nbsp;end;<br> &nbsp;PMQOD = ^TMQOD;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQOR Structure -- Object Record &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQOR = record<br> &nbsp; &nbsp;ObjectName : MQCHAR48; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Object name *)<br> &nbsp; &nbsp;ObjectQMgrName : MQCHAR48; &nbsp; &nbsp; &nbsp; (* Object queue manager name *)<br> &nbsp;end;<br> &nbsp;PMQOR = ^TMQOR;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQPMO Structure -- Put Message Options &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQPMO = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure version number *)<br> &nbsp; &nbsp;Options : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Options that control the action of<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MQPUT and MQPUT1 *)<br> &nbsp; &nbsp;Timeout : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Reserved *)<br> &nbsp; &nbsp;Context : MQHOBJ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Object handle of input queue *)<br> &nbsp; &nbsp;KnownDestCount : MQLONG; &nbsp; &nbsp; &nbsp;(* Number of messages sent successfully<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; to local queues *)<br> &nbsp; &nbsp;UnknownDestCount : MQLONG; &nbsp; &nbsp;(* Number of messages sent successfully<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; to remote queues *)<br> &nbsp; &nbsp;InvalidDestCount : MQLONG; &nbsp; &nbsp;(* Number of messages that could not be<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sent *)<br> &nbsp; &nbsp;ResolvedQName : MQCHAR48; &nbsp; &nbsp; (* Resolved name of destination<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; queue *)<br> &nbsp; &nbsp;ResolvedQMgrName : MQCHAR48; &nbsp;(* Resolved name of destination queue<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; manager *)<br> &nbsp; &nbsp;RecsPresent : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; (* Number of put message records or<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response records present *)<br> &nbsp; &nbsp;PutMsgRecFields : MQLONG; &nbsp; &nbsp; (* Flags indicating which MQPMR fields<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; are present *)<br> &nbsp; &nbsp;PutMsgRecOffset : MQLONG; &nbsp; &nbsp; (* Offset of first put message record<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from start of MQPMO *)<br> &nbsp; &nbsp;ResponseRecOffset : MQLONG; &nbsp; (* Offset of first response record from<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; start of MQPMO *)<br> &nbsp; &nbsp;PutMsgRecPtr : MQPTR; &nbsp; &nbsp; &nbsp; &nbsp; (* Address of first put message<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; record *)<br> &nbsp; &nbsp;ResponseRecPtr : MQPTR; &nbsp; &nbsp; &nbsp; (* Address of first response record *)<br> &nbsp;end;<br> &nbsp;PMQPMO = ^TMQPMO;<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQRFH Structure -- Rules and Formatting Header &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQRFH = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure version number *)<br> &nbsp; &nbsp;StrucLength : MQLONG; &nbsp; &nbsp; &nbsp; (* Total length of MQRFH including string<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; containing name/value pairs *)<br> &nbsp; &nbsp;Encoding : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Numeric encoding of data that follows<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NameValueString *)<br> &nbsp; &nbsp;CodedCharSetId : MQLONG; &nbsp; &nbsp;(* Character set identifier of data that<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; follows NameValueString *)<br> &nbsp; &nbsp;Format : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Format name of data that follows<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NameValueString *)<br> &nbsp; &nbsp;Flags : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Flags *)<br> &nbsp;end;<br> &nbsp;PMQRFH = ^TMQRFH;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQRFH2 Structure -- Rules and Formatting Header 2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQRFH2 = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure version number *)<br> &nbsp; &nbsp;StrucLength : MQLONG; &nbsp; &nbsp; &nbsp; (* Total length of MQRFH2 including<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NameValueData *)<br> &nbsp; &nbsp;Encoding : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Numeric encoding of data that follows<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NameValueData *)<br> &nbsp; &nbsp;CodedCharSetId : MQLONG; &nbsp; &nbsp;(* Character set identifier of data that<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; follows NameValueData *)<br> &nbsp; &nbsp;Format : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Format name of data that follows<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NameValueData *)<br> &nbsp; &nbsp;Flags : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Flags *)<br> &nbsp; &nbsp;NameValueCCSID : MQLONG; &nbsp; &nbsp;(* Character set identifier of<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NameValueData *)<br> &nbsp;end;<br> &nbsp;PMQRFH2 = ^TMQRFH2;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQRMH Structure -- Reference Message Header &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQRMH = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure version number *)<br> &nbsp; &nbsp;StrucLength : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Total length of MQRMH, including<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;strings at end of fixed fields, but<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;not the bulk data *)<br> &nbsp; &nbsp;Encoding : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Numeric encoding of bulk data *)<br> &nbsp; &nbsp;CodedCharSetId : MQLONG; &nbsp; &nbsp; &nbsp; (* Character set identifier of bulk<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;data *)<br> &nbsp; &nbsp;Format : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Format name of bulk data *)<br> &nbsp; &nbsp;Flags : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Reference message flags *)<br> &nbsp; &nbsp;ObjectType : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Object type *)<br> &nbsp; &nbsp;ObjectInstanceId : MQBYTE24; &nbsp; (* Object instance identifier *)<br> &nbsp; &nbsp;SrcEnvLength : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; (* Length of source environment<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;data *)<br> &nbsp; &nbsp;SrcEnvOffset : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; (* Offset of source environment<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;data *)<br> &nbsp; &nbsp;SrcNameLength : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp;(* Length of source object name *)<br> &nbsp; &nbsp;SrcNameOffset : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp;(* Offset of source object name *)<br> &nbsp; &nbsp;DestEnvLength : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp;(* Length of destination environment<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;data *)<br> &nbsp; &nbsp;DestEnvOffset : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp;(* Offset of destination environment<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;data *)<br> &nbsp; &nbsp;DestNameLength : MQLONG; &nbsp; &nbsp; &nbsp; (* Length of destination object<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;name *)<br> &nbsp; &nbsp;DestNameOffset : MQLONG; &nbsp; &nbsp; &nbsp; (* Offset of destination object<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;name *)<br> &nbsp; &nbsp;DataLogicalLength : MQLONG; &nbsp; &nbsp;(* Length of bulk data *)<br> &nbsp; &nbsp;DataLogicalOffset : MQLONG; &nbsp; &nbsp;(* Low offset of bulk data *)<br> &nbsp; &nbsp;DataLogicalOffset2 : MQLONG; &nbsp; (* High offset of bulk data *)<br> &nbsp;end;<br> &nbsp;PMQRMH = ^TMQRMH;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQRR Structure -- Response Record &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQRR = record<br> &nbsp; &nbsp;CompCode : MQLONG; &nbsp; (* Completion code for queue *)<br> &nbsp; &nbsp;Reason : MQLONG; &nbsp; &nbsp; (* Reason code for queue *)<br> &nbsp;end;<br> &nbsp;PMQRR = ^TMQRR;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQTM Structure -- Trigger Message &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQTM = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure version number *)<br> &nbsp; &nbsp;QName : MQCHAR48; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Name of triggered queue *)<br> &nbsp; &nbsp;ProcessName : MQCHAR48; &nbsp; &nbsp;(* Name of process object *)<br> &nbsp; &nbsp;TriggerData : MQCHAR64; &nbsp; &nbsp;(* Trigger data *)<br> &nbsp; &nbsp;ApplType : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; (* Application type *)<br> &nbsp; &nbsp;ApplId : MQCHAR256; &nbsp; &nbsp; &nbsp; &nbsp;(* Application identifier *)<br> &nbsp; &nbsp;EnvData : MQCHAR128; &nbsp; &nbsp; &nbsp; (* Environment data *)<br> &nbsp; &nbsp;UserData : MQCHAR128; &nbsp; &nbsp; &nbsp;(* User data *)<br> &nbsp;end;<br> &nbsp;PMQTM = ^TMQTM;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQTMC2 Structure -- Trigger Message 2 (Character) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQTMC2 = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure identifier *)<br> &nbsp; &nbsp;Version : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure version number *)<br> &nbsp; &nbsp;QName : MQCHAR48; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Name of triggered queue *)<br> &nbsp; &nbsp;ProcessName : MQCHAR48; &nbsp; &nbsp;(* Name of process object *)<br> &nbsp; &nbsp;TriggerData : MQCHAR64; &nbsp; &nbsp;(* Trigger data *)<br> &nbsp; &nbsp;ApplType : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp;(* Application type *)<br> &nbsp; &nbsp;ApplId : MQCHAR256; &nbsp; &nbsp; &nbsp; &nbsp;(* Application identifier *)<br> &nbsp; &nbsp;EnvData : MQCHAR128; &nbsp; &nbsp; &nbsp; (* Environment data *)<br> &nbsp; &nbsp;UserData : MQCHAR128; &nbsp; &nbsp; &nbsp;(* User data *)<br> &nbsp; &nbsp;QMgrName : MQCHAR48; &nbsp; &nbsp; &nbsp; (* Queue manager name *)<br> &nbsp;end;<br> &nbsp;PMQTMC2 = ^TMQTMC2;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQWIH Structure -- Work Information Header &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQWIH = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure version number *)<br> &nbsp; &nbsp;StrucLength : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp;(* Length of MQWIH structure *)<br> &nbsp; &nbsp;Encoding : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Numeric encoding of data that follows<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MQWIH *)<br> &nbsp; &nbsp;CodedCharSetId : MQLONG; &nbsp; &nbsp; (* Character-set identifier of data that<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;follows MQWIH *)<br> &nbsp; &nbsp;Format : MQCHAR8; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Format name of data that follows<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MQWIH *)<br> &nbsp; &nbsp;Flags : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Flags *)<br> &nbsp; &nbsp;ServiceName : MQCHAR32; &nbsp; &nbsp; &nbsp;(* Service name *)<br> &nbsp; &nbsp;ServiceStep : MQCHAR8; &nbsp; &nbsp; &nbsp; (* Service step name *)<br> &nbsp; &nbsp;MsgToken : MQBYTE16; &nbsp; &nbsp; &nbsp; &nbsp; (* Message token *)<br> &nbsp; &nbsp;Reserved : MQCHAR32; &nbsp; &nbsp; &nbsp; &nbsp; (* Reserved *)<br> &nbsp;end;<br> &nbsp;PMQWIH = ^TMQWIH;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQXQH Structure -- Transmission Queue Header &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;TMQXQH = record<br> &nbsp; &nbsp;StrucId : MQCHAR4; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Structure identifier *)<br> &nbsp; &nbsp;Version : MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Structure version number *)<br> &nbsp; &nbsp;RemoteQName : MQCHAR48; &nbsp; &nbsp; &nbsp;(* Name of destination queue *)<br> &nbsp; &nbsp;RemoteQMgrName : MQCHAR48; &nbsp; (* Name of destination queue manager *)<br> &nbsp; &nbsp;MsgDesc : TMQMD1; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Original message descriptor *)<br> &nbsp;end;<br> &nbsp;PMQXQH = ^TMQXQH;<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQBACK Function -- Back Out Changes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;procedure MQBACK (<br> &nbsp; &nbsp;Hconn: MQHCONN; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Connection handle *)<br> &nbsp; &nbsp;var CompCode : MQLONG; &nbsp; (* Completion code *)<br> &nbsp; &nbsp;var Reason: MQLONG); &nbsp; &nbsp; (* Reason code qualifying CompCode *)<br> &nbsp;cdecl;<br> &nbsp;external 'mqm.dll' name 'MQBACK';<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQBEGIN Function -- Begin Unit of Work &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;procedure MQBEGIN (<br> &nbsp; &nbsp;Hconn: MQHCONN; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Connection handle *)<br> &nbsp; &nbsp;var BeginOptions: TMQBO; &nbsp; &nbsp; (* Options that control the action of MQBEGIN *)<br> &nbsp; &nbsp;var CompCode: MQLONG; &nbsp; &nbsp; &nbsp; &nbsp;(* Completion code *)<br> &nbsp; &nbsp;var Reason: MQLONG); &nbsp; &nbsp; &nbsp; &nbsp; (* Reason code qualifying CompCode *)<br> &nbsp;cdecl;<br> &nbsp;external 'mqm.dll' name 'MQBEGIN';<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQCLOSE Function -- Close Object &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;procedure MQCLOSE (<br> &nbsp; &nbsp;Hconn: MQHCONN; &nbsp; &nbsp; &nbsp; &nbsp; (* Connection handle *)<br> &nbsp; &nbsp;var Hobj: MQHOBJ; &nbsp; &nbsp; &nbsp; (* Object handle *)<br> &nbsp; &nbsp;Options: MQLONG; &nbsp; &nbsp; &nbsp; &nbsp;(* Options that control the action of MQCLOSE *)<br> &nbsp; &nbsp;var CompCode: MQLONG; &nbsp; (* Completion code *)<br> &nbsp; &nbsp;var Reason: MQLONG); &nbsp; &nbsp;(* Reason code qualifying CompCode *)<br> &nbsp;cdecl;<br> &nbsp;external 'mqm.dll' name 'MQCLOSE';<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQCMIT Function -- Commit Changes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;procedure MQCMIT (<br> &nbsp; &nbsp;Hconn: MQHCONN; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Connection handle *)<br> &nbsp; &nbsp;var CompCode: PMQLONG; &nbsp; &nbsp; (* Completion code *)<br> &nbsp; &nbsp;var Reason: PMQLONG); &nbsp; &nbsp; &nbsp;(* Reason code qualifying CompCode *)<br> &nbsp;cdecl;<br> &nbsp;external 'mqm.dll' name 'MQCMIT';<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQCONN Function -- Connect Queue Manager &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;procedure MQCONN (<br> &nbsp; &nbsp;pQMgrName: PChar; &nbsp; &nbsp; &nbsp; &nbsp;(* Name of queue manager *)<br> &nbsp; &nbsp;var Hconn: MQHCONN; &nbsp; &nbsp; &nbsp;(* Connection handle *)<br> &nbsp; &nbsp;var CompCode: MQLONG; &nbsp; &nbsp;(* Completion code *)<br> &nbsp; &nbsp;var Reason: MQLONG); &nbsp; &nbsp; (* Reason code qualifying CompCode *)<br> &nbsp;cdecl;<br> &nbsp;external 'mqm.dll' name 'MQCONN';<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQCONNX Function -- Connect Queue Manager (Extended) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;procedure MQCONNX (<br> &nbsp; &nbsp;pQMgrName: PChar; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Name of queue manager *)<br> &nbsp; &nbsp;var ConnectOpts: TMQCNO; &nbsp; &nbsp;(* Options that control the action of<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MQCONNX *)<br> &nbsp; &nbsp;var Hconn: MQHCONN; &nbsp; &nbsp; &nbsp; &nbsp;(* Connection handle *)<br> &nbsp; &nbsp;var CompCode: MQLONG; &nbsp; &nbsp; &nbsp;(* Completion code *)<br> &nbsp; &nbsp;var pReason: MQLONG); &nbsp; &nbsp; &nbsp;(* Reason code qualifying CompCode *)<br> cdecl;<br> external 'mqm.dll' name 'MQCONNX';<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQDISC Function -- Disconnect Queue Manager &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;procedure MQDISC (<br> &nbsp; &nbsp;var Hconn: MQHCONN; &nbsp; &nbsp; &nbsp;(* Connection handle *)<br> &nbsp; &nbsp;var CompCode: MQLONG; &nbsp; &nbsp;(* Completion code *)<br> &nbsp; &nbsp;var Reason: MQLONG); &nbsp; &nbsp; (* Reason code qualifying CompCode *)<br> &nbsp;cdecl;<br> &nbsp;external 'mqm.dll' name 'MQDISC';<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQGET Function -- Get Message &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;procedure MQGET (<br> &nbsp; &nbsp;Hconn: MQHCONN; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Connection handle *)<br> &nbsp; &nbsp;Hobj: MQHOBJ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Object handle *)<br> &nbsp; &nbsp;var MsgDesc: TMQMD; &nbsp; &nbsp; &nbsp; (* Message descriptor *)<br> &nbsp; &nbsp;var GetMsgOpts: TMQGMO; &nbsp; (* Options that control the action of<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MQGET *)<br> &nbsp; &nbsp;BufferLength: MQLONG; &nbsp; &nbsp; (* Length in bytes of the Buffer area *)<br> &nbsp; &nbsp;pBuffer: Pointer; //PMQVOID; (* Area to contain the message data *)<br> &nbsp; &nbsp;var DataLength: MQLONG; &nbsp; (* Length of the message *)<br> &nbsp; &nbsp;var CompCode: MQLONG; &nbsp; &nbsp; (* Completion code *)<br> &nbsp; &nbsp;var Reason: MQLONG); &nbsp; &nbsp; &nbsp;(* Reason code qualifying CompCode *)<br> &nbsp;cdecl;<br> &nbsp;external 'mqm.dll' name 'MQGET';<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQINQ Function -- Inquire Object Attributes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;procedure MQINQ (<br> &nbsp; &nbsp;Hconn: MQHCONN; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Connection handle *)<br> &nbsp; &nbsp;Hobj: MQHOBJ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Object handle *)<br> &nbsp; &nbsp;SelectorCount: MQLONG; &nbsp; &nbsp; (* Count of selectors *)<br> &nbsp; &nbsp;pSelectors: PMQLONG; &nbsp; &nbsp; &nbsp; (* Array of attribute selectors *)<br> &nbsp; &nbsp;IntAttrCount: MQLONG; &nbsp; &nbsp; &nbsp;(* Count of integer attributes *)<br> &nbsp; &nbsp;pIntAttrs: PMQLONG; &nbsp; &nbsp; &nbsp; &nbsp;(* Array of integer attributes *)<br> &nbsp; &nbsp;CharAttrLength: MQLONG; &nbsp; &nbsp;(* Length of character attributes buffer *)<br> &nbsp; &nbsp;pCharAttrs: PMQCHAR; &nbsp; &nbsp; &nbsp; (* Character attributes *)<br> &nbsp; &nbsp;pCompCode: PMQLONG; &nbsp; &nbsp; &nbsp; &nbsp;(* Completion code *)<br> &nbsp; &nbsp;pReason: PMQLONG); &nbsp; &nbsp; &nbsp; &nbsp; (* Reason code qualifying CompCode *)<br> &nbsp;cdecl;<br> &nbsp;external 'mqm.dll' name 'MQINQ';<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQOPEN Function -- Open Object &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;procedure MQOPEN (<br> &nbsp; &nbsp;Hconn: MQHCONN; &nbsp; &nbsp; &nbsp; &nbsp; (* Connection handle *)<br> &nbsp; &nbsp;var ObjDesc: TMQOD; &nbsp; &nbsp; (* Object descriptor *)<br> &nbsp; &nbsp;Options: MQLONG; &nbsp; &nbsp; &nbsp; &nbsp;(* Options that control the action of MQOPEN *)<br> &nbsp; &nbsp;var Hobj: MQHOBJ; &nbsp; &nbsp; &nbsp; (* Object handle *)<br> &nbsp; &nbsp;var CompCode: MQLONG; &nbsp; (* Completion code *)<br> &nbsp; &nbsp;var Reason: MQLONG); &nbsp; &nbsp;(* Reason code qualifying CompCode *)<br> &nbsp;cdecl;<br> &nbsp;external 'mqm.dll' name 'MQOPEN';<br><br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQPUT Function -- Put Message &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;procedure MQPUT (<br> &nbsp; &nbsp;Hconn : MQHCONN; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Connection handle *)<br> &nbsp; &nbsp;Hobj : MQHOBJ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Object handle *)<br> &nbsp; &nbsp;var MsgDesc : TMQMD; &nbsp; &nbsp; &nbsp; (* Message descriptor *)<br> &nbsp; &nbsp;var PutMsgOpts : TMQPMO; &nbsp; (* Options that control the action of MQPUT *)<br> &nbsp; &nbsp;BufferLength : MQLONG; &nbsp; &nbsp; (* Length of the message in Buffer *)<br> &nbsp; &nbsp;pBuffer : Pointer; &nbsp; &nbsp; &nbsp; &nbsp; (* Message data *)<br> &nbsp; &nbsp;var CompCode : MQLONG; &nbsp; &nbsp; (* Completion code *)<br> &nbsp; &nbsp;var Reason : MQLONG); &nbsp; &nbsp; &nbsp;(* Reason code qualifying CompCode *)<br> &nbsp;cdecl;<br> &nbsp;external 'mqm.dll' name 'MQPUT';<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQPUT1 Function -- Put One Message &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;procedure MQPUT1 (<br> &nbsp; &nbsp;Hconn : MQHCONN; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (* Connection handle *)<br> &nbsp; &nbsp;var ObjDesc : TMQOD; &nbsp; &nbsp; &nbsp; (* Object descriptor *)<br> &nbsp; &nbsp;var MsgDesc : TMQMD; &nbsp; &nbsp; &nbsp; (* Message descriptor *)<br> &nbsp; &nbsp;var PutMsgOpts : TMQPMO; &nbsp; (* Options that control the action of MQPUT1 *)<br> &nbsp; &nbsp;BufferLength : MQLONG; &nbsp; &nbsp; (* Length of the message in Buffer *)<br> &nbsp; &nbsp;pBuffer : Pointer; &nbsp; &nbsp; &nbsp; &nbsp; (* Message data *)<br> &nbsp; &nbsp;var CompCode : MQLONG; &nbsp; &nbsp; (* Completion code *)<br> &nbsp; &nbsp;var Reason : MQLONG); &nbsp; &nbsp; &nbsp;(* Reason code qualifying CompCode *)<br> &nbsp;cdecl;<br> &nbsp;external 'mqm.dll' name 'MQPUT1';<br><br> &nbsp;(*********************************************************************)<br> &nbsp;(* &nbsp;MQSET Function -- Set Object Attributes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br> &nbsp;(*********************************************************************)<br><br> &nbsp;procedure MQSET (<br> &nbsp; &nbsp;Hconn : MQHCONN; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Connection handle *)<br> &nbsp; &nbsp;Hobj : MQHOBJ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(* Object handle *)<br> &nbsp; &nbsp;SelectorCount : MQLONG; &nbsp; &nbsp; (* Count of selectors *)<br> &nbsp; &nbsp;var Selectors : MQLONG; &nbsp; &nbsp; (* Array of attribute selectors *)<br> &nbsp; &nbsp;IntAttrCount : MQLONG; &nbsp; &nbsp; &nbsp;(* Count of integer attributes *)<br> &nbsp; &nbsp;var IntAttrs : MQLONG; &nbsp; &nbsp; &nbsp;(* Array of integer attributes *)<br> &nbsp; &nbsp;CharAttrLength : MQLONG; &nbsp; &nbsp;(* Length of character attributes buffer *)<br> &nbsp; &nbsp;var CharAttrs : MQCHAR; &nbsp; &nbsp; (* Character attributes *)<br> &nbsp; &nbsp;var CompCode : MQLONG; &nbsp; &nbsp; &nbsp;(* Completion code *)<br> &nbsp; &nbsp;var Reason : MQLONG); &nbsp; &nbsp; &nbsp; (* Reason code qualifying CompCode *)<br> &nbsp;cdecl;<br> &nbsp;external 'mqm.dll' name 'MQSET';<br><br><br>function DecodeCompletionCode(CompCode: integer): String;<br>function DecodeReason(Reason: integer): String;<br><br>procedure SetMQBO_DEFAULT (var struct: TMQBO);<br>procedure SetMQCIH_DEFAULT ( var struct: TMQCIH);<br>procedure setMQCNO_DEFAULT(var struct: TMQCNO);<br>procedure setMQDH_DEFAULT(var struct: TMQDH);<br>procedure SetMQGMO_DEFAULT(var struct: TMQGMO);<br>procedure SetMQIIH_DEFAULT(var struct: TMQIIH);<br>procedure SetMQDLH_DEFAULT (var struct: TMQDLH);<br>procedure SetMQMD_DEFAULT(var struct: TMQMD);<br>procedure SetMQMDE_DEFAULT(var struct: TMQMDE);<br>procedure SetMQMD1_DEFAULT(var struct: TMQMD1);<br>procedure SetMQOD_DEFAULT(var struct: TMQOD);<br>procedure SetMQOR_DEFAULT(var struct: TMQOR);<br>procedure SetMQPMO_DEFAULT(var struct: TMQPMO);<br>procedure SetMQRFH_DEFAULT (var struct: TMQRFH);<br>procedure SetMQRFH2_DEFAULT(var struct: TMQRFH2);<br>procedure SetMQRMH_DEFAULT (var struct: TMQRMH);<br>procedure SetMQRR_DEFAULT(var struct: TMQRR);<br>procedure SetMQTM_DEFAULT(var struct: TMQTM);<br>procedure SetMQTMC2_DEFAULT(var struct: TMQTMC2);<br>procedure SetMQWIH_DEFAULT(var struct: TMQWIH);<br>procedure SetMQXQH_DEFAULT(var struct: TMQXQH);<br><br>implementation<br><br>function DecodeCompletionCode(CompCode: integer): String;<br>var rv: String;<br>begin<br> &nbsp;case CompCode of<br> &nbsp; &nbsp;MQCC_OK &nbsp; &nbsp; &nbsp;: rv := 'MQCC_OK &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQCC_WARNING : rv := 'MQCC_WARNING';<br> &nbsp; &nbsp;MQCC_FAILED &nbsp;: rv := 'MQCC_FAILED ';<br> &nbsp; &nbsp;MQCC_UNKNOWN : rv := 'MQCC_UNKNOWN';<br> &nbsp; &nbsp;else &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rv := 'UNKNOWN &nbsp; &nbsp; ';<br> &nbsp;end;<br> &nbsp;Result := rv;<br>end;<br><br>function DecodeReason(Reason: integer): String;<br>var rv: String;<br>begin<br> &nbsp;case Reason of<br> &nbsp; &nbsp;MQRC_NONE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_NONE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_ALIAS_BASE_Q_TYPE_ERROR &nbsp; : rv := 'MQRC_ALIAS_BASE_Q_TYPE_ERROR &nbsp;';<br> &nbsp; &nbsp;MQRC_ALREADY_CONNECTED &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_ALREADY_CONNECTED &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_BACKED_OUT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_BACKED_OUT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_BUFFER_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_BUFFER_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_BUFFER_LENGTH_ERROR &nbsp; &nbsp; &nbsp; : rv := 'MQRC_BUFFER_LENGTH_ERROR &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CHAR_ATTR_LENGTH_ERROR &nbsp; &nbsp;: rv := 'MQRC_CHAR_ATTR_LENGTH_ERROR &nbsp; ';<br> &nbsp; &nbsp;MQRC_CHAR_ATTRS_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CHAR_ATTRS_ERROR &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CHAR_ATTRS_TOO_SHORT &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CHAR_ATTRS_TOO_SHORT &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CONNECTION_BROKEN &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_CONNECTION_BROKEN &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_DATA_LENGTH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_DATA_LENGTH_ERROR &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_DYNAMIC_Q_NAME_ERROR &nbsp; &nbsp; &nbsp;: rv := 'MQRC_DYNAMIC_Q_NAME_ERROR &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_ENVIRONMENT_ERROR &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_ENVIRONMENT_ERROR &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_EXPIRY_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_EXPIRY_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_FEEDBACK_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_FEEDBACK_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_GET_INHIBITED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_GET_INHIBITED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_HANDLE_NOT_AVAILABLE &nbsp; &nbsp; &nbsp;: rv := 'MQRC_HANDLE_NOT_AVAILABLE &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_HCONN_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_HCONN_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_HOBJ_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_HOBJ_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_INHIBIT_VALUE_ERROR &nbsp; &nbsp; &nbsp; : rv := 'MQRC_INHIBIT_VALUE_ERROR &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_INT_ATTR_COUNT_ERROR &nbsp; &nbsp; &nbsp;: rv := 'MQRC_INT_ATTR_COUNT_ERROR &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_INT_ATTR_COUNT_TOO_SMALL &nbsp;: rv := 'MQRC_INT_ATTR_COUNT_TOO_SMALL ';<br> &nbsp; &nbsp;MQRC_INT_ATTRS_ARRAY_ERROR &nbsp; &nbsp; : rv := 'MQRC_INT_ATTRS_ARRAY_ERROR &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_SYNCPOINT_LIMIT_REACHED &nbsp; : rv := 'MQRC_SYNCPOINT_LIMIT_REACHED &nbsp;';<br> &nbsp; &nbsp;MQRC_MAX_CONNS_LIMIT_REACHED &nbsp; : rv := 'MQRC_MAX_CONNS_LIMIT_REACHED &nbsp;';<br> &nbsp; &nbsp;MQRC_MD_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_MD_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_MISSING_REPLY_TO_Q &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_MISSING_REPLY_TO_Q &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_MSG_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_MSG_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_MSG_TOO_BIG_FOR_Q &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_MSG_TOO_BIG_FOR_Q &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_MSG_TOO_BIG_FOR_Q_MGR &nbsp; &nbsp; : rv := 'MQRC_MSG_TOO_BIG_FOR_Q_MGR &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_NO_MSG_AVAILABLE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_NO_MSG_AVAILABLE &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_NO_MSG_UNDER_CURSOR &nbsp; &nbsp; &nbsp; : rv := 'MQRC_NO_MSG_UNDER_CURSOR &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_NOT_AUTHORIZED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_NOT_AUTHORIZED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_NOT_OPEN_FOR_BROWSE &nbsp; &nbsp; &nbsp; : rv := 'MQRC_NOT_OPEN_FOR_BROWSE &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_NOT_OPEN_FOR_INPUT &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_NOT_OPEN_FOR_INPUT &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_NOT_OPEN_FOR_INQUIRE &nbsp; &nbsp; &nbsp;: rv := 'MQRC_NOT_OPEN_FOR_INQUIRE &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_NOT_OPEN_FOR_OUTPUT &nbsp; &nbsp; &nbsp; : rv := 'MQRC_NOT_OPEN_FOR_OUTPUT &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_NOT_OPEN_FOR_SET &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_NOT_OPEN_FOR_SET &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_OBJECT_CHANGED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_OBJECT_CHANGED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_OBJECT_IN_USE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_OBJECT_IN_USE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_OBJECT_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_OBJECT_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_OD_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_OD_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_OPTION_NOT_VALID_FOR_TYPE : rv := 'MQRC_OPTION_NOT_VALID_FOR_TYPE';<br> &nbsp; &nbsp;MQRC_OPTIONS_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_OPTIONS_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_PERSISTENCE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_PERSISTENCE_ERROR &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_PERSISTENT_NOT_ALLOWED &nbsp; &nbsp;: rv := 'MQRC_PERSISTENT_NOT_ALLOWED &nbsp; ';<br> &nbsp; &nbsp;MQRC_PRIORITY_EXCEEDS_MAXIMUM &nbsp;: rv := 'MQRC_PRIORITY_EXCEEDS_MAXIMUM ';<br> &nbsp; &nbsp;MQRC_PRIORITY_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_PRIORITY_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_PUT_INHIBITED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_PUT_INHIBITED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_Q_DELETED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_Q_DELETED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_Q_FULL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_Q_FULL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_Q_NOT_EMPTY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_Q_NOT_EMPTY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_Q_SPACE_NOT_AVAILABLE &nbsp; &nbsp; : rv := 'MQRC_Q_SPACE_NOT_AVAILABLE &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_Q_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_Q_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_Q_MGR_NAME_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_Q_MGR_NAME_ERROR &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_Q_MGR_NOT_AVAILABLE &nbsp; &nbsp; &nbsp; : rv := 'MQRC_Q_MGR_NOT_AVAILABLE &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_REPORT_OPTIONS_ERROR &nbsp; &nbsp; &nbsp;: rv := 'MQRC_REPORT_OPTIONS_ERROR &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_SECOND_MARK_NOT_ALLOWED &nbsp; : rv := 'MQRC_SECOND_MARK_NOT_ALLOWED &nbsp;';<br> &nbsp; &nbsp;MQRC_SECURITY_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_SECURITY_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_SELECTOR_COUNT_ERROR &nbsp; &nbsp; &nbsp;: rv := 'MQRC_SELECTOR_COUNT_ERROR &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_SELECTOR_LIMIT_EXCEEDED &nbsp; : rv := 'MQRC_SELECTOR_LIMIT_EXCEEDED &nbsp;';<br> &nbsp; &nbsp;MQRC_SELECTOR_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_SELECTOR_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_SELECTOR_NOT_FOR_TYPE &nbsp; &nbsp; : rv := 'MQRC_SELECTOR_NOT_FOR_TYPE &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_SIGNAL_OUTSTANDING &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_SIGNAL_OUTSTANDING &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_SIGNAL_REQUEST_ACCEPTED &nbsp; : rv := 'MQRC_SIGNAL_REQUEST_ACCEPTED &nbsp;';<br> &nbsp; &nbsp;MQRC_STORAGE_NOT_AVAILABLE &nbsp; &nbsp; : rv := 'MQRC_STORAGE_NOT_AVAILABLE &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_SYNCPOINT_NOT_AVAILABLE &nbsp; : rv := 'MQRC_SYNCPOINT_NOT_AVAILABLE &nbsp;';<br> &nbsp; &nbsp;MQRC_TRIGGER_CONTROL_ERROR &nbsp; &nbsp; : rv := 'MQRC_TRIGGER_CONTROL_ERROR &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_TRIGGER_DEPTH_ERROR &nbsp; &nbsp; &nbsp; : rv := 'MQRC_TRIGGER_DEPTH_ERROR &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_TRIGGER_MSG_PRIORITY_ERR &nbsp;: rv := 'MQRC_TRIGGER_MSG_PRIORITY_ERR ';<br> &nbsp; &nbsp;MQRC_TRIGGER_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_TRIGGER_TYPE_ERROR &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_TRUNCATED_MSG_ACCEPTED &nbsp; &nbsp;: rv := 'MQRC_TRUNCATED_MSG_ACCEPTED &nbsp; ';<br> &nbsp; &nbsp;MQRC_TRUNCATED_MSG_FAILED &nbsp; &nbsp; &nbsp;: rv := 'MQRC_TRUNCATED_MSG_FAILED &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_UNKNOWN_ALIAS_BASE_Q &nbsp; &nbsp; &nbsp;: rv := 'MQRC_UNKNOWN_ALIAS_BASE_Q &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_UNKNOWN_OBJECT_NAME &nbsp; &nbsp; &nbsp; : rv := 'MQRC_UNKNOWN_OBJECT_NAME &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_UNKNOWN_OBJECT_Q_MGR &nbsp; &nbsp; &nbsp;: rv := 'MQRC_UNKNOWN_OBJECT_Q_MGR &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_UNKNOWN_REMOTE_Q_MGR &nbsp; &nbsp; &nbsp;: rv := 'MQRC_UNKNOWN_REMOTE_Q_MGR &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_WAIT_INTERVAL_ERROR &nbsp; &nbsp; &nbsp; : rv := 'MQRC_WAIT_INTERVAL_ERROR &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_XMIT_Q_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_XMIT_Q_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_XMIT_Q_USAGE_ERROR &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_XMIT_Q_USAGE_ERROR &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_NOT_OPEN_FOR_PASS_ALL &nbsp; &nbsp; : rv := 'MQRC_NOT_OPEN_FOR_PASS_ALL &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_NOT_OPEN_FOR_PASS_IDENT &nbsp; : rv := 'MQRC_NOT_OPEN_FOR_PASS_IDENT &nbsp;';<br> &nbsp; &nbsp;MQRC_NOT_OPEN_FOR_SET_ALL &nbsp; &nbsp; &nbsp;: rv := 'MQRC_NOT_OPEN_FOR_SET_ALL &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_NOT_OPEN_FOR_SET_IDENT &nbsp; &nbsp;: rv := 'MQRC_NOT_OPEN_FOR_SET_IDENT &nbsp; ';<br> &nbsp; &nbsp;MQRC_CONTEXT_HANDLE_ERROR &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CONTEXT_HANDLE_ERROR &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CONTEXT_NOT_AVAILABLE &nbsp; &nbsp; : rv := 'MQRC_CONTEXT_NOT_AVAILABLE &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_SIGNAL1_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_SIGNAL1_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_OBJECT_ALREADY_EXISTS &nbsp; &nbsp; : rv := 'MQRC_OBJECT_ALREADY_EXISTS &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_OBJECT_DAMAGED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_OBJECT_DAMAGED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_RESOURCE_PROBLEM &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_RESOURCE_PROBLEM &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_ANOTHER_Q_MGR_CONNECTED &nbsp; : rv := 'MQRC_ANOTHER_Q_MGR_CONNECTED &nbsp;';<br> &nbsp; &nbsp;MQRC_UNKNOWN_REPORT_OPTION &nbsp; &nbsp; : rv := 'MQRC_UNKNOWN_REPORT_OPTION &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_STORAGE_CLASS_ERROR &nbsp; &nbsp; &nbsp; : rv := 'MQRC_STORAGE_CLASS_ERROR &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_COD_NOT_VALID_FOR_XCF_Q &nbsp; : rv := 'MQRC_COD_NOT_VALID_FOR_XCF_Q &nbsp;';<br> &nbsp; &nbsp;MQRC_XWAIT_CANCELED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_XWAIT_CANCELED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_XWAIT_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_XWAIT_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_SUPPRESSED_BY_EXIT &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_SUPPRESSED_BY_EXIT &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_FORMAT_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_FORMAT_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_SOURCE_CCSID_ERROR &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_SOURCE_CCSID_ERROR &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_SOURCE_INTEGER_ENC_ERROR &nbsp;: rv := 'MQRC_SOURCE_INTEGER_ENC_ERROR ';<br> &nbsp; &nbsp;MQRC_SOURCE_DECIMAL_ENC_ERROR &nbsp;: rv := 'MQRC_SOURCE_DECIMAL_ENC_ERROR ';<br> &nbsp; &nbsp;MQRC_SOURCE_FLOAT_ENC_ERROR &nbsp; &nbsp;: rv := 'MQRC_SOURCE_FLOAT_ENC_ERROR &nbsp; ';<br> &nbsp; &nbsp;MQRC_TARGET_CCSID_ERROR &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_TARGET_CCSID_ERROR &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_TARGET_INTEGER_ENC_ERROR &nbsp;: rv := 'MQRC_TARGET_INTEGER_ENC_ERROR ';<br> &nbsp; &nbsp;MQRC_TARGET_DECIMAL_ENC_ERROR &nbsp;: rv := 'MQRC_TARGET_DECIMAL_ENC_ERROR ';<br> &nbsp; &nbsp;MQRC_TARGET_FLOAT_ENC_ERROR &nbsp; &nbsp;: rv := 'MQRC_TARGET_FLOAT_ENC_ERROR &nbsp; ';<br> &nbsp; &nbsp;MQRC_NOT_CONVERTED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_NOT_CONVERTED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CONVERTED_MSG_TOO_BIG &nbsp; &nbsp; : rv := 'MQRC_CONVERTED_MSG_TOO_BIG &nbsp; &nbsp;';<br>// &nbsp; &nbsp;MQRC_TRUNCATED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_TRUNCATED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_NO_EXTERNAL_PARTICIPANTS &nbsp;: rv := 'MQRC_NO_EXTERNAL_PARTICIPANTS ';<br> &nbsp; &nbsp;MQRC_PARTICIPANT_NOT_AVAILABLE : rv := 'MQRC_PARTICIPANT_NOT_AVAILABLE';<br> &nbsp; &nbsp;MQRC_OUTCOME_MIXED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_OUTCOME_MIXED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_OUTCOME_PENDING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_OUTCOME_PENDING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_BRIDGE_STARTED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_BRIDGE_STARTED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_BRIDGE_STOPPED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_BRIDGE_STOPPED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_ADAPTER_STORAGE_SHORTAGE &nbsp;: rv := 'MQRC_ADAPTER_STORAGE_SHORTAGE ';<br> &nbsp; &nbsp;MQRC_UOW_IN_PROGRESS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_UOW_IN_PROGRESS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_ADAPTER_CONN_LOAD_ERROR &nbsp; : rv := 'MQRC_ADAPTER_CONN_LOAD_ERROR &nbsp;';<br> &nbsp; &nbsp;MQRC_ADAPTER_SERV_LOAD_ERROR &nbsp; : rv := 'MQRC_ADAPTER_SERV_LOAD_ERROR &nbsp;';<br> &nbsp; &nbsp;MQRC_ADAPTER_DEFS_ERROR &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_ADAPTER_DEFS_ERROR &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_ADAPTER_DEFS_LOAD_ERROR &nbsp; : rv := 'MQRC_ADAPTER_DEFS_LOAD_ERROR &nbsp;';<br> &nbsp; &nbsp;MQRC_ADAPTER_CONV_LOAD_ERROR &nbsp; : rv := 'MQRC_ADAPTER_CONV_LOAD_ERROR &nbsp;';<br> &nbsp; &nbsp;MQRC_BO_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_BO_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_DH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_DH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_MULTIPLE_REASONS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_MULTIPLE_REASONS &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_OPEN_FAILED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_OPEN_FAILED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_ADAPTER_DISC_LOAD_ERROR &nbsp; : rv := 'MQRC_ADAPTER_DISC_LOAD_ERROR &nbsp;';<br> &nbsp; &nbsp;MQRC_CNO_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_CNO_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CICS_WAIT_FAILED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CICS_WAIT_FAILED &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_DLH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_DLH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_HEADER_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_HEADER_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_SOURCE_LENGTH_ERROR &nbsp; &nbsp; &nbsp; : rv := 'MQRC_SOURCE_LENGTH_ERROR &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_TARGET_LENGTH_ERROR &nbsp; &nbsp; &nbsp; : rv := 'MQRC_TARGET_LENGTH_ERROR &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_SOURCE_BUFFER_ERROR &nbsp; &nbsp; &nbsp; : rv := 'MQRC_SOURCE_BUFFER_ERROR &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_TARGET_BUFFER_ERROR &nbsp; &nbsp; &nbsp; : rv := 'MQRC_TARGET_BUFFER_ERROR &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_IIH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_IIH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_PCF_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_PCF_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_DBCS_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_DBCS_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_OBJECT_NAME_ERROR &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_OBJECT_NAME_ERROR &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_OBJECT_Q_MGR_NAME_ERROR &nbsp; : rv := 'MQRC_OBJECT_Q_MGR_NAME_ERROR &nbsp;';<br> &nbsp; &nbsp;MQRC_RECS_PRESENT_ERROR &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_RECS_PRESENT_ERROR &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_OBJECT_RECORDS_ERROR &nbsp; &nbsp; &nbsp;: rv := 'MQRC_OBJECT_RECORDS_ERROR &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_RESPONSE_RECORDS_ERROR &nbsp; &nbsp;: rv := 'MQRC_RESPONSE_RECORDS_ERROR &nbsp; ';<br> &nbsp; &nbsp;MQRC_ASID_MISMATCH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_ASID_MISMATCH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_PMO_RECORD_FLAGS_ERROR &nbsp; &nbsp;: rv := 'MQRC_PMO_RECORD_FLAGS_ERROR &nbsp; ';<br> &nbsp; &nbsp;MQRC_PUT_MSG_RECORDS_ERROR &nbsp; &nbsp; : rv := 'MQRC_PUT_MSG_RECORDS_ERROR &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CONN_ID_IN_USE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CONN_ID_IN_USE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_Q_MGR_QUIESCING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_Q_MGR_QUIESCING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_Q_MGR_STOPPING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_Q_MGR_STOPPING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_DUPLICATE_RECOV_COORD &nbsp; &nbsp; : rv := 'MQRC_DUPLICATE_RECOV_COORD &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_PMO_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_PMO_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_API_EXIT_NOT_FOUND &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_API_EXIT_NOT_FOUND &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_API_EXIT_LOAD_ERROR &nbsp; &nbsp; &nbsp; : rv := 'MQRC_API_EXIT_LOAD_ERROR &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_REMOTE_Q_NAME_ERROR &nbsp; &nbsp; &nbsp; : rv := 'MQRC_REMOTE_Q_NAME_ERROR &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_INCONSISTENT_PERSISTENCE &nbsp;: rv := 'MQRC_INCONSISTENT_PERSISTENCE ';<br> &nbsp; &nbsp;MQRC_GMO_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_GMO_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CICS_BRIDGE_RESTRICTION &nbsp; : rv := 'MQRC_CICS_BRIDGE_RESTRICTION &nbsp;';<br> &nbsp; &nbsp;MQRC_STOPPED_BY_CLUSTER_EXIT &nbsp; : rv := 'MQRC_STOPPED_BY_CLUSTER_EXIT &nbsp;';<br> &nbsp; &nbsp;MQRC_CLUSTER_RESOLUTION_ERROR &nbsp;: rv := 'MQRC_CLUSTER_RESOLUTION_ERROR ';<br> &nbsp; &nbsp;MQRC_CONVERTED_STRING_TOO_BIG &nbsp;: rv := 'MQRC_CONVERTED_STRING_TOO_BIG ';<br> &nbsp; &nbsp;MQRC_TMC_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_TMC_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_PAGESET_FULL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_PAGESET_FULL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br>// &nbsp; &nbsp;MQRC_STORAGE_MEDIUM_FULL &nbsp; &nbsp; &nbsp; : rv := 'MQRC_STORAGE_MEDIUM_FULL &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_PAGESET_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_PAGESET_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_NAME_NOT_VALID_FOR_TYPE &nbsp; : rv := 'MQRC_NAME_NOT_VALID_FOR_TYPE &nbsp;';<br> &nbsp; &nbsp;MQRC_UNEXPECTED_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_UNEXPECTED_ERROR &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_UNKNOWN_XMIT_Q &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_UNKNOWN_XMIT_Q &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_UNKNOWN_DEF_XMIT_Q &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_UNKNOWN_DEF_XMIT_Q &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_DEF_XMIT_Q_TYPE_ERROR &nbsp; &nbsp; : rv := 'MQRC_DEF_XMIT_Q_TYPE_ERROR &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_DEF_XMIT_Q_USAGE_ERROR &nbsp; &nbsp;: rv := 'MQRC_DEF_XMIT_Q_USAGE_ERROR &nbsp; ';<br> &nbsp; &nbsp;MQRC_NAME_IN_USE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_NAME_IN_USE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CONNECTION_QUIESCING &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CONNECTION_QUIESCING &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CONNECTION_STOPPING &nbsp; &nbsp; &nbsp; : rv := 'MQRC_CONNECTION_STOPPING &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_ADAPTER_NOT_AVAILABLE &nbsp; &nbsp; : rv := 'MQRC_ADAPTER_NOT_AVAILABLE &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_MSG_ID_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_MSG_ID_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CORREL_ID_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_CORREL_ID_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_FILE_SYSTEM_ERROR &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_FILE_SYSTEM_ERROR &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_NO_MSG_LOCKED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_NO_MSG_LOCKED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_FILE_NOT_AUDITED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_FILE_NOT_AUDITED &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CONNECTION_NOT_AUTHORIZED : rv := 'MQRC_CONNECTION_NOT_AUTHORIZED';<br> &nbsp; &nbsp;MQRC_MSG_TOO_BIG_FOR_CHANNEL &nbsp; : rv := 'MQRC_MSG_TOO_BIG_FOR_CHANNEL &nbsp;';<br> &nbsp; &nbsp;MQRC_CALL_IN_PROGRESS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CALL_IN_PROGRESS &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_RMH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_RMH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_Q_MGR_ACTIVE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_Q_MGR_ACTIVE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_Q_MGR_NOT_ACTIVE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_Q_MGR_NOT_ACTIVE &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_Q_DEPTH_HIGH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_Q_DEPTH_HIGH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_Q_DEPTH_LOW &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_Q_DEPTH_LOW &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_Q_SERVICE_INTERVAL_HIGH &nbsp; : rv := 'MQRC_Q_SERVICE_INTERVAL_HIGH &nbsp;';<br> &nbsp; &nbsp;MQRC_Q_SERVICE_INTERVAL_OK &nbsp; &nbsp; : rv := 'MQRC_Q_SERVICE_INTERVAL_OK &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_UNIT_OF_WORK_NOT_STARTED &nbsp;: rv := 'MQRC_UNIT_OF_WORK_NOT_STARTED ';<br> &nbsp; &nbsp;MQRC_CHANNEL_AUTO_DEF_OK &nbsp; &nbsp; &nbsp; : rv := 'MQRC_CHANNEL_AUTO_DEF_OK &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CHANNEL_AUTO_DEF_ERROR &nbsp; &nbsp;: rv := 'MQRC_CHANNEL_AUTO_DEF_ERROR &nbsp; ';<br> &nbsp; &nbsp;MQRC_CFH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_CFH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CFIL_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CFIL_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CFIN_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CFIN_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CFSL_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CFSL_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CFST_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CFST_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_INCOMPLETE_GROUP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_INCOMPLETE_GROUP &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_INCOMPLETE_MSG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_INCOMPLETE_MSG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_INCONSISTENT_CCSIDS &nbsp; &nbsp; &nbsp; : rv := 'MQRC_INCONSISTENT_CCSIDS &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_INCONSISTENT_ENCODINGS &nbsp; &nbsp;: rv := 'MQRC_INCONSISTENT_ENCODINGS &nbsp; ';<br> &nbsp; &nbsp;MQRC_INCONSISTENT_UOW &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_INCONSISTENT_UOW &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_INVALID_MSG_UNDER_CURSOR &nbsp;: rv := 'MQRC_INVALID_MSG_UNDER_CURSOR ';<br> &nbsp; &nbsp;MQRC_MATCH_OPTIONS_ERROR &nbsp; &nbsp; &nbsp; : rv := 'MQRC_MATCH_OPTIONS_ERROR &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_MDE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_MDE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_MSG_FLAGS_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_MSG_FLAGS_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_MSG_SEQ_NUMBER_ERROR &nbsp; &nbsp; &nbsp;: rv := 'MQRC_MSG_SEQ_NUMBER_ERROR &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_OFFSET_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_OFFSET_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_ORIGINAL_LENGTH_ERROR &nbsp; &nbsp; : rv := 'MQRC_ORIGINAL_LENGTH_ERROR &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_SEGMENT_LENGTH_ZERO &nbsp; &nbsp; &nbsp; : rv := 'MQRC_SEGMENT_LENGTH_ZERO &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_UOW_NOT_AVAILABLE &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_UOW_NOT_AVAILABLE &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_WRONG_GMO_VERSION &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_WRONG_GMO_VERSION &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_WRONG_MD_VERSION &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_WRONG_MD_VERSION &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_GROUP_ID_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_GROUP_ID_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_INCONSISTENT_BROWSE &nbsp; &nbsp; &nbsp; : rv := 'MQRC_INCONSISTENT_BROWSE &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_XQH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_XQH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_SRC_ENV_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_SRC_ENV_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_SRC_NAME_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_SRC_NAME_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_DEST_ENV_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_DEST_ENV_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_DEST_NAME_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_DEST_NAME_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_TM_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_TM_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CLUSTER_EXIT_ERROR &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CLUSTER_EXIT_ERROR &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CLUSTER_EXIT_LOAD_ERROR &nbsp; : rv := 'MQRC_CLUSTER_EXIT_LOAD_ERROR &nbsp;';<br> &nbsp; &nbsp;MQRC_CLUSTER_PUT_INHIBITED &nbsp; &nbsp; : rv := 'MQRC_CLUSTER_PUT_INHIBITED &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CLUSTER_RESOURCE_ERROR &nbsp; &nbsp;: rv := 'MQRC_CLUSTER_RESOURCE_ERROR &nbsp; ';<br> &nbsp; &nbsp;MQRC_NO_DESTINATIONS_AVAILABLE : rv := 'MQRC_NO_DESTINATIONS_AVAILABLE';<br> &nbsp; &nbsp;MQRC_CONN_TAG_IN_USE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_CONN_TAG_IN_USE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_PARTIALLY_CONVERTED &nbsp; &nbsp; &nbsp; : rv := 'MQRC_PARTIALLY_CONVERTED &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CONNECTION_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CONNECTION_ERROR &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_OPTION_ENVIRONMENT_ERROR &nbsp;: rv := 'MQRC_OPTION_ENVIRONMENT_ERROR ';<br> &nbsp; &nbsp;MQRC_CD_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CD_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CLIENT_CONN_ERROR &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_CLIENT_CONN_ERROR &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CHANNEL_STOPPED_BY_USER &nbsp; : rv := 'MQRC_CHANNEL_STOPPED_BY_USER &nbsp;';<br> &nbsp; &nbsp;MQRC_HCONFIG_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_HCONFIG_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_FUNCTION_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_FUNCTION_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CHANNEL_STARTED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_CHANNEL_STARTED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CHANNEL_STOPPED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_CHANNEL_STOPPED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CHANNEL_CONV_ERROR &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CHANNEL_CONV_ERROR &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_SERVICE_NOT_AVAILABLE &nbsp; &nbsp; : rv := 'MQRC_SERVICE_NOT_AVAILABLE &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_INITIALIZATION_FAILED &nbsp; &nbsp; : rv := 'MQRC_INITIALIZATION_FAILED &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_TERMINATION_FAILED &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_TERMINATION_FAILED &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_UNKNOWN_Q_NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_UNKNOWN_Q_NAME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_SERVICE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_SERVICE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_Q_ALREADY_EXISTS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_Q_ALREADY_EXISTS &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_USER_ID_NOT_AVAILABLE &nbsp; &nbsp; : rv := 'MQRC_USER_ID_NOT_AVAILABLE &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_UNKNOWN_ENTITY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_UNKNOWN_ENTITY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_UNKNOWN_AUTH_ENTITY &nbsp; &nbsp; &nbsp; : rv := 'MQRC_UNKNOWN_AUTH_ENTITY &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_UNKNOWN_REF_OBJECT &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_UNKNOWN_REF_OBJECT &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CHANNEL_ACTIVATED &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_CHANNEL_ACTIVATED &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CHANNEL_NOT_ACTIVATED &nbsp; &nbsp; : rv := 'MQRC_CHANNEL_NOT_ACTIVATED &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_UOW_CANCELED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_UOW_CANCELED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_FUNCTION_NOT_SUPPORTED &nbsp; &nbsp;: rv := 'MQRC_FUNCTION_NOT_SUPPORTED &nbsp; ';<br> &nbsp; &nbsp;MQRC_SELECTOR_TYPE_ERROR &nbsp; &nbsp; &nbsp; : rv := 'MQRC_SELECTOR_TYPE_ERROR &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_COMMAND_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_COMMAND_TYPE_ERROR &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_MULTIPLE_INSTANCE_ERROR &nbsp; : rv := 'MQRC_MULTIPLE_INSTANCE_ERROR &nbsp;';<br> &nbsp; &nbsp;MQRC_SYSTEM_ITEM_NOT_ALTERABLE : rv := 'MQRC_SYSTEM_ITEM_NOT_ALTERABLE';<br> &nbsp; &nbsp;MQRC_BAG_CONVERSION_ERROR &nbsp; &nbsp; &nbsp;: rv := 'MQRC_BAG_CONVERSION_ERROR &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_SELECTOR_OUT_OF_RANGE &nbsp; &nbsp; : rv := 'MQRC_SELECTOR_OUT_OF_RANGE &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_SELECTOR_NOT_UNIQUE &nbsp; &nbsp; &nbsp; : rv := 'MQRC_SELECTOR_NOT_UNIQUE &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_INDEX_NOT_PRESENT &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_INDEX_NOT_PRESENT &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_STRING_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_STRING_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_ENCODING_NOT_SUPPORTED &nbsp; &nbsp;: rv := 'MQRC_ENCODING_NOT_SUPPORTED &nbsp; ';<br> &nbsp; &nbsp;MQRC_SELECTOR_NOT_PRESENT &nbsp; &nbsp; &nbsp;: rv := 'MQRC_SELECTOR_NOT_PRESENT &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_OUT_SELECTOR_ERROR &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_OUT_SELECTOR_ERROR &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_STRING_TRUNCATED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_STRING_TRUNCATED &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_SELECTOR_WRONG_TYPE &nbsp; &nbsp; &nbsp; : rv := 'MQRC_SELECTOR_WRONG_TYPE &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_INCONSISTENT_ITEM_TYPE &nbsp; &nbsp;: rv := 'MQRC_INCONSISTENT_ITEM_TYPE &nbsp; ';<br> &nbsp; &nbsp;MQRC_INDEX_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_INDEX_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_SYSTEM_BAG_NOT_ALTERABLE &nbsp;: rv := 'MQRC_SYSTEM_BAG_NOT_ALTERABLE ';<br> &nbsp; &nbsp;MQRC_ITEM_COUNT_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_ITEM_COUNT_ERROR &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_FORMAT_NOT_SUPPORTED &nbsp; &nbsp; &nbsp;: rv := 'MQRC_FORMAT_NOT_SUPPORTED &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_SELECTOR_NOT_SUPPORTED &nbsp; &nbsp;: rv := 'MQRC_SELECTOR_NOT_SUPPORTED &nbsp; ';<br> &nbsp; &nbsp;MQRC_ITEM_VALUE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_ITEM_VALUE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_HBAG_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_HBAG_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_PARAMETER_MISSING &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_PARAMETER_MISSING &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CMD_SERVER_NOT_AVAILABLE &nbsp;: rv := 'MQRC_CMD_SERVER_NOT_AVAILABLE ';<br> &nbsp; &nbsp;MQRC_STRING_LENGTH_ERROR &nbsp; &nbsp; &nbsp; : rv := 'MQRC_STRING_LENGTH_ERROR &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_INQUIRY_COMMAND_ERROR &nbsp; &nbsp; : rv := 'MQRC_INQUIRY_COMMAND_ERROR &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_NESTED_BAG_NOT_SUPPORTED &nbsp;: rv := 'MQRC_NESTED_BAG_NOT_SUPPORTED ';<br> &nbsp; &nbsp;MQRC_BAG_WRONG_TYPE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_BAG_WRONG_TYPE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_ITEM_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_ITEM_TYPE_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_SYSTEM_BAG_NOT_DELETABLE &nbsp;: rv := 'MQRC_SYSTEM_BAG_NOT_DELETABLE ';<br> &nbsp; &nbsp;MQRC_SYSTEM_ITEM_NOT_DELETABLE : rv := 'MQRC_SYSTEM_ITEM_NOT_DELETABLE';<br> &nbsp; &nbsp;MQRC_CODED_CHAR_SET_ID_ERROR &nbsp; : rv := 'MQRC_CODED_CHAR_SET_ID_ERROR &nbsp;';<br> &nbsp; &nbsp;MQRC_MSG_TOKEN_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_MSG_TOKEN_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_MISSING_WIH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_MISSING_WIH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_WIH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_WIH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_RFH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_RFH_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_RFH_STRING_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_RFH_STRING_ERROR &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_RFH_COMMAND_ERROR &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_RFH_COMMAND_ERROR &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_RFH_PARM_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_RFH_PARM_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_RFH_DUPLICATE_PARM &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_RFH_DUPLICATE_PARM &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_RFH_PARM_MISSING &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_RFH_PARM_MISSING &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CHAR_CONVERSION_ERROR &nbsp; &nbsp; : rv := 'MQRC_CHAR_CONVERSION_ERROR &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_UCS2_CONVERSION_ERROR &nbsp; &nbsp; : rv := 'MQRC_UCS2_CONVERSION_ERROR &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_DB2_NOT_AVAILABLE &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_DB2_NOT_AVAILABLE &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_OBJECT_NOT_UNIQUE &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_OBJECT_NOT_UNIQUE &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CONN_TAG_NOT_RELEASED &nbsp; &nbsp; : rv := 'MQRC_CONN_TAG_NOT_RELEASED &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CF_NOT_AVAILABLE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CF_NOT_AVAILABLE &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CF_STRUC_IN_USE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_CF_STRUC_IN_USE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CF_STRUC_LIST_HDR_IN_USE &nbsp;: rv := 'MQRC_CF_STRUC_LIST_HDR_IN_USE ';<br> &nbsp; &nbsp;MQRC_CF_STRUC_AUTH_FAILED &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CF_STRUC_AUTH_FAILED &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CF_STRUC_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CF_STRUC_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_CONN_TAG_NOT_USABLE &nbsp; &nbsp; &nbsp; : rv := 'MQRC_CONN_TAG_NOT_USABLE &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_GLOBAL_UOW_CONFLICT &nbsp; &nbsp; &nbsp; : rv := 'MQRC_GLOBAL_UOW_CONFLICT &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_LOCAL_UOW_CONFLICT &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_LOCAL_UOW_CONFLICT &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_HANDLE_IN_USE_FOR_UOW &nbsp; &nbsp; : rv := 'MQRC_HANDLE_IN_USE_FOR_UOW &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_UOW_ENLISTMENT_ERROR &nbsp; &nbsp; &nbsp;: rv := 'MQRC_UOW_ENLISTMENT_ERROR &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_UOW_MIX_NOT_SUPPORTED &nbsp; &nbsp; : rv := 'MQRC_UOW_MIX_NOT_SUPPORTED &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_WXP_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_WXP_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_CURRENT_RECORD_ERROR &nbsp; &nbsp; &nbsp;: rv := 'MQRC_CURRENT_RECORD_ERROR &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_NEXT_OFFSET_ERROR &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_NEXT_OFFSET_ERROR &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_NO_RECORD_AVAILABLE &nbsp; &nbsp; &nbsp; : rv := 'MQRC_NO_RECORD_AVAILABLE &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MQRC_OBJECT_LEVEL_INCOMPATIBLE : rv := 'MQRC_OBJECT_LEVEL_INCOMPATIBLE';<br> &nbsp; &nbsp;MQRC_NEXT_RECORD_ERROR &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_NEXT_RECORD_ERROR &nbsp; &nbsp; &nbsp; &nbsp;';<br><br> &nbsp; &nbsp;MQRC_APPL_FIRST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: rv := 'MQRC_APPL_FIRST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ';<br> &nbsp; &nbsp;MQRC_APPL_LAST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : rv := 'MQRC_APPL_LAST &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;else &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rv := 'UNKNOWN REASON &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp;end;<br> &nbsp;result := rv;<br>end;<br><br>procedure SetMQBO_DEFAULT (var struct: TMQBO);<br>begin<br> &nbsp;FillChar(struct, SizeOf(struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrPLCopy(StrucId, MQBO_STRUC_ID, SizeOf(StrucId));<br> &nbsp; &nbsp;Version := MQBO_VERSION_1;<br> &nbsp; &nbsp;Options := MQBO_NONE;<br> &nbsp;end;<br>end;<br><br>procedure SetMQCIH_DEFAULT ( var struct: TMQCIH);<br>begin<br> &nbsp;FillChar(struct, SizeOf(struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucId := MQCIH_STRUC_ID;<br> &nbsp; &nbsp;Version := MQCIH_VERSION_2;<br> &nbsp; &nbsp;StrucLength := MQCIH_LENGTH_2;<br> &nbsp; &nbsp;Encoding := 0;<br> &nbsp; &nbsp;CodedCharSetId := 0;<br> &nbsp; &nbsp;Format := MQFMT_NONE;<br> &nbsp; &nbsp;Flags := MQCIH_NONE;<br> &nbsp; &nbsp;ReturnCode := MQCRC_OK;<br> &nbsp; &nbsp;CompCode := MQCC_OK;<br> &nbsp; &nbsp;Reason := MQRC_NONE;<br> &nbsp; &nbsp;UOWControl := MQCUOWC_ONLY;<br> &nbsp; &nbsp;GetWaitInterval := MQCGWI_DEFAULT;<br> &nbsp; &nbsp;LinkType := MQCLT_PROGRAM;<br> &nbsp; &nbsp;OutputDataLength := MQCODL_AS_INPUT;<br> &nbsp; &nbsp;FacilityKeepTime := 0;<br> &nbsp; &nbsp;ADSDescriptor := MQCADSD_NONE;<br> &nbsp; &nbsp;ConversationalTask := MQCCT_NO;<br> &nbsp; &nbsp;TaskEndStatus := MQCTES_NOSYNC;<br> &nbsp; &nbsp;move(MQCFAC_NONE, Facility, SizeOf(Facility));<br> &nbsp; &nbsp;Function_ := MQCFUNC_NONE;<br> &nbsp; &nbsp;AbendCode := &nbsp;' &nbsp; &nbsp;';<br> &nbsp; &nbsp;Authenticator := ' &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;Reserved1 := ' &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;ReplyToFormat := MQFMT_NONE;<br> &nbsp; &nbsp;RemoteSysId := ' &nbsp; &nbsp;';<br> &nbsp; &nbsp;RemoteTransId := ' &nbsp; &nbsp;';<br> &nbsp; &nbsp;TransactionId := ' &nbsp; &nbsp;';<br> &nbsp; &nbsp;FacilityLike := ' &nbsp; &nbsp;';<br> &nbsp; &nbsp;AttentionId := ' &nbsp; &nbsp;';<br> &nbsp; &nbsp;StartCode := MQCSC_NONE;<br> &nbsp; &nbsp;CancelCode := ' &nbsp; &nbsp;';<br> &nbsp; &nbsp;NextTransactionId := ' &nbsp; &nbsp;';<br> &nbsp; &nbsp;Reserved2 := ' &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;Reserved3 := ' &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;CursorPosition := 0;<br> &nbsp; &nbsp;ErrorOffset := 0;<br> &nbsp; &nbsp;InputItem := 0;<br> &nbsp; &nbsp;Reserved4 := 0;<br> &nbsp;end;<br>end;<br><br>procedure setMQCNO_DEFAULT(var struct: TMQCNO);<br>begin<br> &nbsp;FillChar(struct, SizeOf(struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucId := MQCNO_STRUC_ID;<br> &nbsp; &nbsp;Version := MQCNO_VERSION_1;<br> &nbsp; &nbsp;Options := MQCNO_NONE;<br> &nbsp; &nbsp;ClientConnOffset := 0;<br> &nbsp; &nbsp;ClientConnPtr := nil;<br> &nbsp;end;<br>end;<br><br>procedure setMQDH_DEFAULT(var struct: TMQDH);<br>begin<br> &nbsp;FillChar(struct, SizeOf(struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucId := MQDH_STRUC_ID;<br> &nbsp; &nbsp;Version := MQDH_VERSION_1;<br> &nbsp; &nbsp;StrucLength := 0;<br> &nbsp; &nbsp;Encoding := 0;<br> &nbsp; &nbsp;CodedCharSetId := MQCCSI_UNDEFINED;<br> &nbsp; &nbsp;Format := MQFMT_NONE;<br> &nbsp; &nbsp;Flags := MQDHF_NONE;<br> &nbsp; &nbsp;PutMsgRecFields := MQPMRF_NONE;<br> &nbsp; &nbsp;RecsPresent := 0;<br> &nbsp; &nbsp;ObjectRecOffset := 0;<br> &nbsp; &nbsp;PutMsgRecOffset := 0;<br> &nbsp;end;<br>end;<br><br>procedure SetMQGMO_DEFAULT(var struct: TMQGMO);<br>begin<br> &nbsp;FillChar(struct, SizeOf(struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucID := MQGMO_STRUC_ID;<br> &nbsp; &nbsp;Version := MQGMO_VERSION_1;<br> &nbsp; &nbsp;Options := MQGMO_NO_WAIT;<br> &nbsp; &nbsp;WaitInterval := 0;<br> &nbsp; &nbsp;Signal1 := 0;<br> &nbsp; &nbsp;Signal2 := 0;<br> &nbsp; &nbsp;ResolvedQName := '';<br> &nbsp; &nbsp;MatchOptions := MQMO_MATCH_MSG_ID+MQMO_MATCH_CORREL_ID;<br> &nbsp; &nbsp;GroupStatus := MQGS_NOT_IN_GROUP;<br> &nbsp; &nbsp;SegmentStatus := MQSS_NOT_A_SEGMENT;<br> &nbsp; &nbsp;Segmentation := MQSEG_INHIBITED;<br> &nbsp; &nbsp;Reserved1 := ' ';<br> &nbsp; &nbsp;Move(MQMTOK_NONE, MsgToken, SizeOf(MsgToken));<br> &nbsp; &nbsp;ReturnedLength := MQRL_UNDEFINED;<br> &nbsp;end;<br>end;<br><br>procedure SetMQIIH_DEFAULT(var struct: TMQIIH);<br>begin<br> &nbsp;FillChar(struct, SizeOf(struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucID := MQIIH_STRUC_ID;<br> &nbsp; &nbsp;Version := MQIIH_VERSION_1;<br> &nbsp; &nbsp;StrucLength := MQIIH_LENGTH_1;<br> &nbsp; &nbsp;Encoding := 0;<br> &nbsp; &nbsp;CodedCharSetId := 0;<br> &nbsp; &nbsp;Format := MQFMT_NONE;<br> &nbsp; &nbsp;Flags := MQIIH_NONE;<br> &nbsp; &nbsp;LTermOverride := ' &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;MFSMapName := ' &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;ReplyToFormat := MQFMT_NONE;<br> &nbsp; &nbsp;Authenticator := MQIAUT_NONE;<br> &nbsp; &nbsp;move(MQITII_NONE, TranInstanceId, SizeOf(TranInstanceId));<br> &nbsp; &nbsp;TranState := MQITS_NOT_IN_CONVERSATION;<br> &nbsp; &nbsp;CommitMode := MQICM_COMMIT_THEN_SEND;<br> &nbsp; &nbsp;SecurityScope := MQISS_CHECK;<br> &nbsp; &nbsp;Reserved := ' ';<br> &nbsp;end;<br>end;<br><br>procedure SetMQDLH_DEFAULT (var struct: TMQDLH);<br>begin<br> &nbsp;FillChar(struct, SizeOf(struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucId := MQDLH_STRUC_ID;<br> &nbsp; &nbsp;Version := MQDLH_VERSION_1;<br> &nbsp; &nbsp;Reason := MQRC_NONE;<br> &nbsp; &nbsp;DestQName := '';<br> &nbsp; &nbsp;DestQMgrName := '';<br> &nbsp; &nbsp;Encoding := 0;<br> &nbsp; &nbsp;CodedCharSetId := MQCCSI_UNDEFINED;<br> &nbsp; &nbsp;Format := MQFMT_NONE;<br> &nbsp; &nbsp;PutApplType := 0;<br> &nbsp; &nbsp;PutApplName := '';<br> &nbsp; &nbsp;PutDate := '';<br> &nbsp; &nbsp;PutTime := '';<br> &nbsp;end;<br>end;<br><br>procedure SetMQMD_DEFAULT(var struct: TMQMD);<br>begin<br> &nbsp;FillChar(struct, SizeOf(struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucId := MQMD_STRUC_ID;<br> &nbsp; &nbsp;Version := MQMD_VERSION_1;<br> &nbsp; &nbsp;Report := MQRO_NONE;<br> &nbsp; &nbsp;MsgType := MQMT_DATAGRAM;<br> &nbsp; &nbsp;Expiry := MQEI_UNLIMITED;<br> &nbsp; &nbsp;Feedback := MQFB_NONE;<br> &nbsp; &nbsp;Encoding := MQENC_NATIVE;<br> &nbsp; &nbsp;CodedCharSetId := MQCCSI_Q_MGR;<br> &nbsp; &nbsp;StrPLCopy(Format, MQFMT_NONE, SizeOf(Format));<br> &nbsp; &nbsp;Priority := MQPRI_PRIORITY_AS_Q_DEF;<br> &nbsp; &nbsp;Persistence := MQPER_PERSISTENCE_AS_Q_DEF;<br> &nbsp; &nbsp;move(MQMI_NONE, MsgId, SizeOf(MsgId));<br> &nbsp; &nbsp;move(MQCI_NONE, CorrelId, SizeOf(COrrelId));<br> &nbsp; &nbsp;BackoutCount := 0;<br> &nbsp; &nbsp;ReplyToQ := '';<br> &nbsp; &nbsp;ReplyToQMgr := '';<br> &nbsp; &nbsp;UserIdentifier := '';<br> &nbsp; &nbsp;move(MQACT_NONE, AccountingToken, SizeOf(AccountingToken));<br> &nbsp; &nbsp;ApplIdentityData := '';<br> &nbsp; &nbsp;PutApplType := MQAT_NO_CONTEXT;<br> &nbsp; &nbsp;PutApplName := '';<br> &nbsp; &nbsp;PutDate := '';<br> &nbsp; &nbsp;PutTime := '';<br> &nbsp; &nbsp;ApplOriginData := '';<br> &nbsp; &nbsp;move(MQGI_NONE, GroupId, SizeOf(GroupID));<br> &nbsp; &nbsp;MsgSeqNumber := 1;<br> &nbsp; &nbsp;Offset := 0;<br> &nbsp; &nbsp;MsgFlags := MQMF_NONE;<br> &nbsp; &nbsp;OriginalLength := MQOL_UNDEFINED;<br> &nbsp;end;<br>end;<br><br>procedure SetMQMDE_DEFAULT(var struct: TMQMDE);<br>begin<br> &nbsp;FillChar(struct, SizeOf(struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucId := MQMDE_STRUC_ID;<br> &nbsp; &nbsp;Version := MQMDE_VERSION_2;<br> &nbsp; &nbsp;StrucLength := MQMDE_LENGTH_2;<br> &nbsp; &nbsp;Encoding := MQENC_NATIVE;<br> &nbsp; &nbsp;CodedCharSetId := MQCCSI_UNDEFINED;<br> &nbsp; &nbsp;Format := MQFMT_NONE;<br> &nbsp; &nbsp;Flags := MQMDEF_NONE;<br> &nbsp; &nbsp;move(MQGI_NONE, GroupId, SizeOf(GroupId));<br> &nbsp; &nbsp;MsgSeqNumber := 1;<br> &nbsp; &nbsp;Offset := 0;<br> &nbsp; &nbsp;MsgFlags := MQMF_NONE;<br> &nbsp; &nbsp;OriginalLength := MQOL_UNDEFINED;<br> &nbsp;end;<br>end;<br><br>procedure SetMQMD1_DEFAULT(var struct: TMQMD1);<br>begin<br> &nbsp;FillChar(struct, SizeOf(struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucId := MQMD_STRUC_ID;<br> &nbsp; &nbsp;Version := MQMD_VERSION_1;<br> &nbsp; &nbsp;Report := MQRO_NONE;<br> &nbsp; &nbsp;MsgType := MQMT_DATAGRAM;<br> &nbsp; &nbsp;Expiry := MQEI_UNLIMITED;<br> &nbsp; &nbsp;Feedback := MQFB_NONE;<br> &nbsp; &nbsp;Encoding := MQENC_NATIVE;<br> &nbsp; &nbsp;CodedCharSetId := MQCCSI_Q_MGR;<br> &nbsp; &nbsp;Format := MQFMT_NONE;<br> &nbsp; &nbsp;Priority := MQPRI_PRIORITY_AS_Q_DEF;<br> &nbsp; &nbsp;Persistence := MQPER_PERSISTENCE_AS_Q_DEF;<br> &nbsp; &nbsp;move(MQMI_NONE, MsgId, SizeOf(MsgId));<br> &nbsp; &nbsp;move(MQCI_NONE, CorrelId, SizeOf(COrrelId));<br> &nbsp; &nbsp;BackoutCount := 0;<br> &nbsp; &nbsp;ReplyToQ := '';<br> &nbsp; &nbsp;ReplyToQMgr := '';<br> &nbsp; &nbsp;UserIdentifier := '';<br> &nbsp; &nbsp;move(MQACT_NONE, AccountingToken, SizeOf(AccountingToken));<br> &nbsp; &nbsp;ApplIdentityData := '';<br> &nbsp; &nbsp;PutApplType := MQAT_NO_CONTEXT;<br> &nbsp; &nbsp;PutApplName := '';<br> &nbsp; &nbsp;PutDate := '';<br> &nbsp; &nbsp;PutTime := '';<br> &nbsp; &nbsp;ApplOriginData := ''<br> &nbsp;end;<br>end;<br><br>procedure SetMQOD_DEFAULT(var struct: TMQOD);<br>begin<br> &nbsp;FillChar(struct, SizeOf(struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucId := MQOD_STRUC_ID;<br> &nbsp; &nbsp;Version := MQOD_VERSION_1;<br> &nbsp; &nbsp;ObjectType := MQOT_Q;<br> &nbsp; &nbsp;ObjectName := '';<br> &nbsp; &nbsp;ObjectQMgrName := '';<br> &nbsp; &nbsp;DynamicQName := 'AMQ.*';<br> &nbsp; &nbsp;AlternateUserId := '';<br> &nbsp; &nbsp;RecsPresent := 0;<br> &nbsp; &nbsp;KnownDestCount := 0;<br> &nbsp; &nbsp;UnknownDestCount := 0;<br> &nbsp; &nbsp;InvalidDestCount := 0;<br> &nbsp; &nbsp;ObjectRecOffset := 0;<br> &nbsp; &nbsp;ResponseRecOffset := 0;<br> &nbsp; &nbsp;ObjectRecPtr := nil;<br> &nbsp; &nbsp;ResponseRecPtr := nil;<br> &nbsp; &nbsp;Move(MQSID_NONE, AlternateSecurityId, SizeOf(MQSID_NONE));<br> &nbsp; &nbsp;ResolvedQName := '';<br> &nbsp; &nbsp;ResolvedQMgrName := '';<br> &nbsp;end;<br>end;<br><br>procedure SetMQOR_DEFAULT(var struct: TMQOR);<br>begin<br> &nbsp;FillChar(struct, SizeOf(struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;ObjectName := '';<br> &nbsp; &nbsp;ObjectQMgrName := ''<br> &nbsp;end;<br>end;<br><br>procedure SetMQPMO_DEFAULT(var struct: TMQPMO);<br>begin<br> &nbsp;FillChar(struct, SizeOf(Struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucId := MQPMO_STRUC_ID;<br> &nbsp; &nbsp;Version := MQPMO_VERSION_1;<br> &nbsp; &nbsp;Options := MQPMO_NONE;<br> &nbsp; &nbsp;Timeout := -1;<br> &nbsp; &nbsp;Context := 0;<br> &nbsp; &nbsp;KnownDestCount := 0;<br> &nbsp; &nbsp;UnknownDestCount := 0;<br> &nbsp; &nbsp;InvalidDestCount := 0;<br> &nbsp; &nbsp;ResolvedQName := '';<br> &nbsp; &nbsp;ResolvedQMgrName := '';<br> &nbsp; &nbsp;RecsPresent := 0;<br> &nbsp; &nbsp;PutMsgRecFields := MQPMRF_NONE;<br> &nbsp; &nbsp;PutMsgRecOffset := 0;<br> &nbsp; &nbsp;ResponseRecOffset := 0;<br> &nbsp; &nbsp;PutMsgRecPtr := nil;<br> &nbsp; &nbsp;ResponseRecPtr := nil;<br> &nbsp;end;<br>end;<br><br>procedure SetMQRFH_DEFAULT (var struct: TMQRFH);<br>begin<br> &nbsp;FillChar(struct, SizeOf(Struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucId := MQRFH_STRUC_ID;<br> &nbsp; &nbsp;Version := MQRFH_VERSION_1;<br> &nbsp; &nbsp;StrucLength := MQRFH_STRUC_LENGTH_FIXED;<br> &nbsp; &nbsp;Encoding := MQENC_NATIVE;<br> &nbsp; &nbsp;CodedCharSetId := MQCCSI_UNDEFINED;<br> &nbsp; &nbsp;Format := MQFMT_NONE;<br> &nbsp; &nbsp;Flags := MQRFH_NONE;<br> &nbsp;end;<br>end;<br><br>procedure SetMQRFH2_DEFAULT(var struct: TMQRFH2);<br>begin<br> &nbsp;FillChar(struct, SizeOf(Struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucId := MQRFH_STRUC_ID;<br> &nbsp; &nbsp;Version := MQRFH_VERSION_2;<br> &nbsp; &nbsp;StrucLength := MQRFH_STRUC_LENGTH_FIXED_2;<br> &nbsp; &nbsp;Encoding := MQENC_NATIVE;<br> &nbsp; &nbsp;CodedCharSetId := MQCCSI_INHERIT;<br> &nbsp; &nbsp;Format := MQFMT_NONE;<br> &nbsp; &nbsp;Flags := MQRFH_NONE;<br> &nbsp; &nbsp;NameValueCCSID := 1208;<br> &nbsp;end;<br>end;<br><br>procedure SetMQRMH_DEFAULT (var struct: TMQRMH);<br>begin<br> &nbsp;FillChar(struct, SizeOf(Struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucId := MQRMH_STRUC_ID;<br> &nbsp; &nbsp;Version := MQRMH_VERSION_1;<br> &nbsp; &nbsp;StrucLength := 0;<br> &nbsp; &nbsp;Encoding := MQENC_NATIVE;<br> &nbsp; &nbsp;CodedCharSetId := MQCCSI_UNDEFINED;<br> &nbsp; &nbsp;Format := MQFMT_NONE;<br> &nbsp; &nbsp;Flags := MQRMHF_NOT_LAST;<br> &nbsp; &nbsp;ObjectType := ' &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;move(MQOII_NONE, ObjectInstanceId, SizeOf(ObjectInstanceId));<br> &nbsp; &nbsp;SrcEnvLength := 0;<br> &nbsp; &nbsp;SrcEnvOffset := 0;<br> &nbsp; &nbsp;SrcNameLength := 0;<br> &nbsp; &nbsp;SrcNameOffset := 0;<br> &nbsp; &nbsp;DestEnvLength := 0;<br> &nbsp; &nbsp;DestEnvOffset := 0;<br> &nbsp; &nbsp;DestNameLength := 0;<br> &nbsp; &nbsp;DestNameOffset := 0;<br> &nbsp; &nbsp;DataLogicalLength := 0;<br> &nbsp; &nbsp;DataLogicalOffset := 0;<br> &nbsp; &nbsp;DataLogicalOffset2 := 0;<br> &nbsp;end;<br>end;<br><br>procedure SetMQRR_DEFAULT(var struct: TMQRR);<br>begin<br> &nbsp;FillChar(struct, SizeOf(Struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;CompCode := MQCC_OK;<br> &nbsp; &nbsp;Reason := MQRC_NONE;<br> &nbsp;end;<br>end;<br><br>procedure SetMQTM_DEFAULT(var struct: TMQTM);<br>begin<br> &nbsp;FillChar(struct, SizeOf(Struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucId := MQTM_STRUC_ID;<br> &nbsp; &nbsp;Version := MQTM_VERSION_1;<br> &nbsp; &nbsp;QName := '';<br> &nbsp; &nbsp;ProcessName := '';<br> &nbsp; &nbsp;TriggerData := '';<br> &nbsp; &nbsp;ApplType := 0;<br> &nbsp; &nbsp;ApplId := '';<br> &nbsp; &nbsp;EnvData := '';<br> &nbsp; &nbsp;UserData := '';<br> &nbsp;end;<br>end;<br><br>procedure SetMQTMC2_DEFAULT(var struct: TMQTMC2);<br>begin<br> &nbsp;FillChar(struct, SizeOf(Struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucId := MQTMC_STRUC_ID;<br> &nbsp; &nbsp;Version := MQTMC_VERSION_2;<br> &nbsp; &nbsp;QName := '';<br> &nbsp; &nbsp;ProcessName := '';<br> &nbsp; &nbsp;TriggerData := '';<br> &nbsp; &nbsp;ApplType := '';<br> &nbsp; &nbsp;ApplId := '';<br> &nbsp; &nbsp;EnvData := '';<br> &nbsp; &nbsp;UserData := '';<br> &nbsp; &nbsp;QMgrName := '';<br> &nbsp;end;<br>end;<br><br>procedure SetMQWIH_DEFAULT(var struct: TMQWIH);<br>begin<br> &nbsp;FillChar(struct, SizeOf(Struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucId := MQWIH_STRUC_ID;<br> &nbsp; &nbsp;Version := MQWIH_VERSION_1;<br> &nbsp; &nbsp;StrucLength := MQWIH_LENGTH_1;<br> &nbsp; &nbsp;Encoding := 0;<br> &nbsp; &nbsp;CodedCharSetId := MQCCSI_UNDEFINED;<br> &nbsp; &nbsp;Format := MQFMT_NONE;<br> &nbsp; &nbsp;Flags := MQWIH_NONE;<br> &nbsp; &nbsp;ServiceName := ' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;ServiceStep := ' &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp; &nbsp;move(MQMTOK_NONE, MsgToken, SizeOf(MsgToken));<br> &nbsp; &nbsp;Reserved := ' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;';<br> &nbsp;end;<br>end;<br><br>procedure SetMQXQH_DEFAULT(var struct: TMQXQH);<br>begin<br> &nbsp;FillChar(struct, SizeOf(Struct), 0);<br> &nbsp;with struct do begin<br> &nbsp; &nbsp;StrucId := MQXQH_STRUC_ID;<br> &nbsp; &nbsp;Version := MQXQH_VERSION_1;<br> &nbsp; &nbsp;RemoteQName := '';<br> &nbsp; &nbsp;RemoteQMgrName := '';<br> &nbsp; &nbsp;SetMQMD1_DEFAULT(MsgDesc);<br> &nbsp;end;<br>end;<br><br>(*********************************************************************)<br>(* &nbsp;End of CMQC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*)<br>(*********************************************************************)<br><br><br>end.
 
program PutGetDemo;<br><br>// **************************************************************************<br>// **************************************************************************<br>// **************************************************************************<br>// MQSeries IBM library test program for Delphi<br>// Author: Dinko Miljak<br>// e-mail: dinmil@flashmail.com<br>// version 0.0.3<br>// **************************************************************************<br>// **************************************************************************<br>// **************************************************************************<br><br>{$APPTYPE CONSOLE}<br>{$A-} &nbsp;// alignment settings - aviod problems between different languages<br><br>uses<br> &nbsp;SysUtils,<br> &nbsp;CMQPas in '../lib/CMQPas.pas';<br><br>procedure WriteCommonError(ErrorMsg: string; CompCode, Reason: integer);<br>begin<br> &nbsp;Write(ErrorMsg);<br> &nbsp;Write(' &nbsp;Completiton Code[', CompCode, ']: ', DecodeCompletionCode(CompCode));<br> &nbsp;Writeln(' &nbsp;Reason Code[', Reason, ']: ', DecodeReason(Reason));<br>end;<br><br>var<br> &nbsp; Hconn &nbsp; &nbsp;: MQHCONN; &nbsp; // Connection handle<br> &nbsp; CompCode : MQLONG; &nbsp; &nbsp;// Completion code - used by all routines<br> &nbsp; OpenCode : MQLONG; &nbsp; &nbsp;// Completion code - used by MQOPEN function<br> &nbsp; Reason &nbsp; : MQLONG; &nbsp; &nbsp;// Reason code - used by all function<br> &nbsp; CReason &nbsp;: MQLONG; &nbsp; &nbsp;// Connect Reason code qualifying CompCode<br> &nbsp; O_options: MQLONG; &nbsp; &nbsp;// Open connection flags<br> &nbsp; C_options: MQLONG; &nbsp; &nbsp;// Close connection flags<br> &nbsp; HObj &nbsp; &nbsp; : MQHOBJ;<br><br> &nbsp; od &nbsp; &nbsp; &nbsp; : TMQOD; &nbsp; &nbsp; &nbsp;// Object descriptor<br> &nbsp; gmo &nbsp; &nbsp; &nbsp;: TMQGMO; &nbsp; &nbsp; // Get message options<br> &nbsp; md &nbsp; &nbsp; &nbsp; : TMQMD; &nbsp; &nbsp; &nbsp;// message descripton structure<br> &nbsp; pmo &nbsp; &nbsp; &nbsp;: TMQPMO; &nbsp; &nbsp; // Put message options<br><br> &nbsp; buffer: array[0..8191] of char; &nbsp;// message buffer in which program receive messages<br> &nbsp; buflen: MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // buffer length - 1 - zero terminated for strings<br> &nbsp; messlen: MQLONG; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// message length received - number of bytes I want to send or I received<br><br> &nbsp; QueueName: String;<br> &nbsp; MessageStr: String;<br><br>begin<br> &nbsp;if (ParamCount &lt;&gt; 2) then begin<br> &nbsp; &nbsp;Writeln('Usage: ', ExtractFileName(ParamStr(0)), ' QueueName Message');<br> &nbsp; &nbsp;Writeln('QueueName - existing MQSeries local queue');<br> &nbsp; &nbsp;Writeln('Message - message string');<br> &nbsp; &nbsp;Writeln('Example: ', ExtractFileName(ParamStr(0)), ' RIBA01 &quot;test message&quot;');<br> &nbsp; &nbsp;Halt;<br> &nbsp;end;<br><br> &nbsp;QueueName := ParamStr(1);<br> &nbsp;MessageStr := ParamStr(2);<br><br> &nbsp;Writeln('QueueName: ', QueueName);<br> &nbsp;Writeln('MessageStr: ', MessageStr);<br><br> &nbsp;// ***********************************************************************<br> &nbsp;// Step 1 - connect to connection manager<br> &nbsp;// ***********************************************************************<br> &nbsp;Writeln('Opening connection to default connection manager');<br> &nbsp;MQCONN(Pchar(''), &nbsp; &nbsp;// Connection manager name<br> &nbsp; &nbsp; &nbsp; &nbsp; HConn, &nbsp; &nbsp; &nbsp; &nbsp;// Connection Handle<br> &nbsp; &nbsp; &nbsp; &nbsp; CompCode, &nbsp; &nbsp; // Completition Code<br> &nbsp; &nbsp; &nbsp; &nbsp; CReason); &nbsp; &nbsp; // Reason<br><br> &nbsp;if (CompCode &lt;&gt; MQCC_OK) then begin<br> &nbsp; &nbsp;WriteCommonError('MQCONN failed with CompCode', CompCode, Reason);<br> &nbsp; &nbsp;Readln; Exit;<br> &nbsp;end<br> &nbsp;else begin<br> &nbsp; &nbsp;Writeln('Connection manager connection opened');<br> &nbsp;end;<br><br> &nbsp;// ***********************************************************************<br> &nbsp;// Step 2 - Open Queue<br> &nbsp;// ***********************************************************************<br> &nbsp;// reset object descriptor structure to defaults<br> &nbsp;SetMQOD_DEFAULT(od);<br><br> &nbsp;// copy queue name string to object structure<br> &nbsp;StrPLCopy(od.ObjectName, QueueName, SizeOf(od.ObjectName));<br><br> &nbsp;// Set connection options<br> &nbsp;O_options := MQOO_INPUT_AS_Q_DEF &nbsp; &nbsp; &nbsp; // open queue for input &nbsp;- read, get<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + MQOO_OUTPUT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // open queue for output - write, put<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + MQOO_FAIL_IF_QUIESCING; &nbsp; // but not if Message Queue Manager is in stopping state<br><br> &nbsp;// Finally open queue<br> &nbsp;Writeln('Opening queue: &quot;', QueueName, '&quot;');<br> &nbsp;MQOPEN(Hconn, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// connection handle<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;od, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// object descriptor for queue<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;O_options, &nbsp; &nbsp; &nbsp; // open options<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Hobj, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// object handle<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OpenCode, &nbsp; &nbsp; &nbsp; &nbsp;// completion code<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Reason); &nbsp; &nbsp; &nbsp; &nbsp; // reason code<br><br> &nbsp;// Check the results of openning action<br> &nbsp;if (Reason &lt;&gt; MQRC_NONE) then begin<br> &nbsp; &nbsp;WriteCommonError('MQOPEN ended with reason code ', OpenCode, Reason);<br> &nbsp; &nbsp;Readln; Exit;<br> &nbsp;end;<br><br> &nbsp;if (OpenCode = MQCC_FAILED) then begin<br> &nbsp; &nbsp;WriteCommonError('Unable to open queue for input or output ', OpenCode, Reason);<br> &nbsp; &nbsp;Readln; Exit;<br> &nbsp;end;<br><br> &nbsp;Writeln('Queue opened');<br><br> &nbsp;// ***********************************************************************<br> &nbsp;// Step 3 - Put one test message to queue<br> &nbsp;// ***********************************************************************<br><br> &nbsp;// reset message descriptor structure to defaults<br> &nbsp;SetMQMD_DEFAULT(md);<br><br> &nbsp;// Copy my custom message string to my local buffer<br> &nbsp;FillChar(buffer, SizeOf(Buffer), 0);<br> &nbsp;StrPLCopy(buffer, MessageStr, SizeOf(buffer));<br><br> &nbsp;// Calculate message length<br> &nbsp;messlen := Length(MessageStr);<br><br> &nbsp;// Reset Put Message Object structure to defaults<br> &nbsp;SetMQPMO_DEFAULT(pmo);<br> &nbsp;md.Format := MQFMT_STRING;<br><br> &nbsp;Writeln('Sending test message to queue');<br><br> &nbsp;// Put message to queue<br> &nbsp;MQPUT(Hconn, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // connection handle<br> &nbsp; &nbsp; &nbsp; &nbsp;Hobj, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// object handle<br> &nbsp; &nbsp; &nbsp; &nbsp;md, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// message descriptor<br> &nbsp; &nbsp; &nbsp; &nbsp;pmo, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // default options (datagram)<br> &nbsp; &nbsp; &nbsp; &nbsp;messlen, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // message length<br> &nbsp; &nbsp; &nbsp; &nbsp;@buffer, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // pointer to message buffer<br> &nbsp; &nbsp; &nbsp; &nbsp;CompCode, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// completion code<br> &nbsp; &nbsp; &nbsp; &nbsp;Reason); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // reason code<br><br> &nbsp;// &nbsp;report reason, if any<br> &nbsp;if (Reason &lt;&gt; MQRC_NONE) then begin<br> &nbsp; &nbsp;WriteCommonError('MQPUT failed ', CompCode, Reason);<br> &nbsp; &nbsp;Readln; Exit;<br> &nbsp;end<br> &nbsp;else begin<br> &nbsp; &nbsp;Write('Message is in the queue. Press any key to continue...');<br> &nbsp; &nbsp;Readln;<br> &nbsp;end;<br><br><br> &nbsp;// ***********************************************************************<br> &nbsp;// Step 4 - Read messages from queue in loop<br> &nbsp;// ***********************************************************************<br> &nbsp;Writeln('Receive messages in loop');<br> &nbsp;Writeln('If programm can not read message in 15 seconds, loop is finished');<br><br> &nbsp;// reset Get Message Option structure to defaults<br> &nbsp;SetMQGMO_DEFAULT(gmo);<br><br> &nbsp;//gmo.Version = MQGMO_VERSION_2; &nbsp;// Avoid need to reset Message<br> &nbsp;//gmo.MatchOptions = MQMO_NONE; &nbsp; // ID and Correlation ID after<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // every MQGET<br> &nbsp;gmo.Options := MQGMO_WAIT &nbsp; &nbsp; &nbsp; &nbsp; // wait for new messages<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + MQGMO_CONVERT; &nbsp; &nbsp; // convert if necessary<br> &nbsp;gmo.WaitInterval := 15000; &nbsp; &nbsp; &nbsp; &nbsp;// 15 seconds limit for waiting<br><br><br> &nbsp;// assume that everything is OK with - see loop condition<br> &nbsp;CompCode := MQCC_OK;<br><br> &nbsp;// how much bytes my receive buffer can handle<br> &nbsp;// note - in this application my send and receive buffers are the same<br> &nbsp;buflen := SizeOf(buffer) - 1;<br><br> &nbsp;// enter loop in which programm receives messages from queue<br> &nbsp;while (CompCode &lt;&gt; MQCC_FAILED) do begin<br> &nbsp; &nbsp;// before message is received you always must<br> &nbsp; &nbsp;// reset this fields in Messsage Descriptor structure<br> &nbsp; &nbsp;move(MQMI_NONE, md.MsgId, SizeOf(md.MsgId));<br> &nbsp; &nbsp;move(MQCI_NONE, md.CorrelId, SizeOf(md.CorrelId));<br> &nbsp; &nbsp;md.Encoding &nbsp; &nbsp; &nbsp; := MQENC_NATIVE;<br> &nbsp; &nbsp;md.CodedCharSetId := MQCCSI_Q_MGR;<br><br> &nbsp; &nbsp;MQGET(Hconn, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// connection handle<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Hobj, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // object handle<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;md, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // message descriptor<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gmo, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// get message options<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;buflen, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // buffer length<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@buffer, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// message buffer<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;messlen, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// message length<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CompCode, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // completion code<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Reason); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// reason code<br><br> &nbsp; &nbsp;if (CompCode &lt;&gt; MQCC_FAILED) then begin<br> &nbsp; &nbsp; &nbsp;Writeln('Received message: ', buffer);<br> &nbsp; &nbsp;end<br> &nbsp; &nbsp;else begin<br> &nbsp; &nbsp; &nbsp;if (Reason = MQRC_NO_MSG_AVAILABLE) then begin<br> &nbsp; &nbsp; &nbsp; &nbsp;WriteCommonError('No more messages', CompCode, Reason);<br> &nbsp; &nbsp; &nbsp;end<br> &nbsp; &nbsp; &nbsp;else if (Reason &lt;&gt; MQRC_NONE) then begin<br> &nbsp; &nbsp; &nbsp; &nbsp;WriteCommonError('Get message failed', CompCode, Reason);<br> &nbsp; &nbsp; &nbsp; &nbsp;Readln; Exit;<br> &nbsp; &nbsp; &nbsp;end;<br> &nbsp; &nbsp;end;<br> &nbsp;end;<br><br><br> &nbsp;// ***********************************************************************<br> &nbsp;// Step 5 - Close my connection to queue<br> &nbsp;// ***********************************************************************<br> &nbsp;if (OpenCode &lt;&gt; MQCC_FAILED) then begin<br> &nbsp; &nbsp;C_options := 0; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// no close options<br> &nbsp; &nbsp;MQCLOSE(Hconn, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // connection handle<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Hobj, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// object handle<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;C_options, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // close options<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CompCode, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// completion code<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Reason); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // reason code<br><br> &nbsp; &nbsp;if (Reason &lt;&gt; MQRC_NONE) then begin<br> &nbsp; &nbsp; &nbsp;WriteCommonError('MQCLOSE ended with reason code ', CompCode, Reason);<br> &nbsp; &nbsp;end<br> &nbsp; &nbsp;else begin<br> &nbsp; &nbsp; &nbsp;Writeln('Queue closed');<br> &nbsp; &nbsp;end;<br> &nbsp;end;<br><br> &nbsp;// ***********************************************************************<br> &nbsp;// Step 6 - Close my connection to queue manager<br> &nbsp;// ***********************************************************************<br> &nbsp;MQDISC(Hconn, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// connection handle<br> &nbsp; &nbsp; &nbsp; &nbsp; CompCode, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // completion code<br> &nbsp; &nbsp; &nbsp; &nbsp; Reason); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// reason code<br><br> &nbsp;if (Reason &lt;&gt; MQRC_NONE) then begin<br> &nbsp; &nbsp;WriteCommonError('MQDISC ended with reason code ', CompCode, Reason);<br> &nbsp;end<br> &nbsp;else begin<br> &nbsp; &nbsp;Writeln('Connection to Queue Manager closed');<br> &nbsp;end;<br><br> &nbsp;Write('Press any key to continue...');<br> &nbsp;// Test finished<br> &nbsp;Readln;<br>end.
 
没人回答,晕死了,还是得靠自己
 
晕,楼主真伟大
 
MQ里面提供了Delphi 调用的接口文件的啊,要例子可以说,Mail给你。
 
jennykiller给个例子吧,我现在无法解决的问题是分段传输的上传和接收有问题,发个例子我参考一下<br>winsssff@163.com
 
多人接受答案了。
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
1K
DelphiTeacher的专栏
D
D
回复
0
查看
2K
DelphiTeacher的专栏
D
后退
顶部