Initial values and language declarations for MQWDR

Initial values and C and High Level Assembler Language declarations for MQWDR - Cluster workload destination record.

Field name Name of constant Value of constant
StrucId MQWDR_STRUC_ID 'WDR? '
Version MQWDR_VERSION_1 1
StrucLength MQWDR_CURRENT_LENGTH 3 136
QMgrFlags MQWDR_NONE 0
QMgrIdentifier None
QMgrName None
ClusterRecOffset None 0
ChannelState None 0
ChannelDefOffset None 0
DestSeqNumber None 0
DestSeqFactor None 0
Notes:
  1. The symbol ? represents a single blank character.
  2. In the C programming language, the macro variable MQWDR_DEFAULT contains the default values. Use it in the following way to provide initial values for the fields in the structure:
    MQWDR MyWDR = {MQWDR_DEFAULT};
    
  3. The initial values intentionally set the length of the structure to the length of the current version, and not version 1 of the structure.


High Level Assembler

MQWDR                          DSECT
MQWDR_STRUCID                  DS   CL4      Structure identifier
MQWDR_VERSION                  DS   F        Structure version number
MQWDR_STRUCLENGTH              DS   F        Length of MQWDR structure
MQWDR_QMGRFLAGS                DS   F        Queue manager flags
MQWDR_QMGRIDENTIFIER           DS   CL48     Queue manager identifier
MQWDR_QMGRNAME                 DS   CL48     Queue manager name
MQWDR_CLUSTERRECOFFSET         DS   F        Offset of first cluster
*                                            record
MQWDR_CHANNELSTATE             DS   F        Channel state
MQWDR_CHANNELDEFOFFSET         DS   F        Offset of channel definition
*                                            structure
MQWDR_LENGTH                   EQU  *-MQWDR  Length of structure
                               ORG  MQWDR
MQWDR_AREA                     DS   CL(MQWDR_LENGTH)


C declaration

typedef struct tagMQWDR {
  MQCHAR4   StrucId;           /* Structure identifier */
  MQLONG    Version;           /* Structure version number */
  MQLONG    StrucLength;       /* Length of MQWDR structure */
  MQLONG    QMgrFlags;         /* Queue managerflags */
  MQCHAR48  QMgrIdentifier;    /* Queue manageridentifier */
  MQCHAR48  QMgrName;          /* Queue manager name */
  MQLONG    ClusterRecOffset;  /* Offset of first cluster record */
  MQLONG    ChannelState;      /* Channel state */
  MQLONG    ChannelDefOffset;  /* Offset of channel definition structure */
  /* Ver:1 */
  MQLONG    DestSeqNumber;     /* Cluster channel destination sequence number */
  MQINT64   DestSeqFactor;     /* Cluster channel factor sequence number */
  /* Ver:2 */
};
Parent topic: MQWDR - Cluster workload destination record structure


Related reference