ObjectString (MQCHARV)

This is the long object name to be used.

The ObjectString is used to form the Full topic name.

The full topic name can be built from two different fields: ObjectName and ObjectString. For details of how these two fields are used, see Use topic strings.

The maximum length of ObjectString is 10240.

If ObjectString is not specified correctly, according to the description of how to use the MQCHARV structure, or if it exceeds the maximum length, the call fails with reason code MQRC_OBJECT_STRING_ERROR.

This is an input field. The initial values of the fields in this structure are the same as those in the MQCHARV structure.

If there are wildcards in the ObjectString the interpretation of those wildcards can be controlled using the Wildcard options specified in the Options field of the MQSD.

On return from an MQSUB call using the MQSO_RESUME option this field is unchanged. The full topic name used is returned in the ResObjectString field if a buffer is provided.

If altering an existing subscription using the MQSO_ALTER option, the long name of the topic object subscribed to cannot be changed. This field and the ObjectName field can be omitted. If they are provided they must resolve to the same full topic name or the call fails with MQRC_TOPIC_NOT_ALTERABLE.

Parent topic: Fields for MQSD