Home

 

Initial values and language declarations

Table 44. Initial values of fields in MQMD
Field name Name of constant Value of constant
StrucId MQMD_STRUC_ID

'MD  '

Version MQMD_VERSION_1

1

Report MQRO_NONE

0

MsgType MQMT_DATAGRAM

8

Expiry MQEI_UNLIMITED

-1

Feedback MQFB_NONE

0

Encoding MQENC_NATIVE Depends on environment
CodedCharSetId MQCCSI_Q_MGR

0

Format MQFMT_NONE Blanks
Priority MQPRI_PRIORITY_AS_Q_DEF

-1

Persistence MQPER_PERSISTENCE_AS_Q_DEF

2

MsgId MQMI_NONE Nulls
CorrelId MQCI_NONE Nulls
BackoutCount None

0

ReplyToQ None Null string or blanks
ReplyToQMgr None Null string or blanks
UserIdentifier None Null string or blanks
AccountingToken MQACT_NONE Nulls
ApplIdentityData None Null string or blanks
PutApplType MQAT_NO_CONTEXT

0

PutApplName None Null string or blanks
PutDate None Null string or blanks
PutTime None Null string or blanks
ApplOriginData None Null string or blanks
GroupId MQGI_NONE Nulls
MsgSeqNumber None

1

Offset None

0

MsgFlags MQMF_NONE

0

OriginalLength MQOL_UNDEFINED

-1

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 MQMD_DEFAULT contains the values listed above. It can be used in the following way to provide initial values for the fields in the structure:

    MQMD MyMD = {MQMD_DEFAULT};



 

Home