ODORO (10-digit signed integer)
Offset of first object record from start of MQOD.
This is the offset in bytes of the first MQOR object record from the start of the MQOD structure. The offset can be positive or negative. ODORO is used only when a distribution list is being opened. The field is ignored if ODREC is zero.
When a distribution list is being opened, an array of one or more MQOR object records must be provided in order to specify the names of the destination queues in the distribution list. This can be done in one of two ways:
- By using the offset field ODORO
In this case, the application should declare its own structure containing an MQOD followed by the array of MQOR records (with as many array elements as are needed), and set ODORO to the offset of the first element in the array from the start of the MQOD. Care must be taken to ensure that this offset is correct.
- By using the pointer field ODORP
In this case, the application can declare the array of MQOR structures separately from the MQOD structure, and set ODORP to the address of the array.
Whichever technique is chosen, one of ODORO and ODORP must be used; the call fails with reason code RC2155 if both are zero, or both are nonzero.
This is an input field. The initial value of this field is 0. This field is ignored if ODVER is less than ODVER2.