Initial values and language declarations for MQSTS

Field name Name of constant Value of constant
StrucId MQSTS_STRUC_ID 'STAT¬'
Version MQSTS_VERSION_1 1
CompCode MQCC_OK 0
Reason MQRC_NONE 0
PutSuccessCount None 0
PutWarningCount None 0
PutFailureCount None 0
ObjectType MQOT_Q 1
ObjectName None Null string or blanks
ObjectQMgrName None Null string or blanks
ResolvedObjectName None Null string or blanks
ResolvedQMgrName None Null string or blanks
ObjectString MQCHARV_DEFAULT {NULL,0,0,0,-3}
SubName MQCHARV_DEFAULT {NULL,0,0,0,-3}
OpenOptions None 0
SubOptions None 0
Notes:
  1. The symbol ¬ represents a single blank character.
  2. The value Null string or blanks denotes the null string in C, and blank characters in other programming languages.
  3. In the C programming language, the macro variable MQSTS_DEFAULT contains the values that are listed in the table. It can be used in the following way to provide initial values for the fields in the structure:
    MQSTS MySTS = {MQSTS_DEFAULT};
    

Parent topic: MQSTS - Status reporting structure