Using queues
There is a special parameter for the queue API called the queue control structure, which is called TPQCTL
in the API. It contains additional parameters and response information for the queue operations. Because of the heritage of the C programming language, each parameter must be paired with a flag value that indicates that the parameter is set. Otherwise, it is ignored. The most important parameters are as follows:
corrid
is a correlation identifier up to 32 characters long.TPQCORRID
must be set inflags
to indicate the presence of this field.deq_time
tells when the message should be dequeued from the queue. WhenTPQTIME_ABS
is set inflags
,deq_time
containsseconds
since the UTC epoch. WhenTPQTIME_REL
is set inflags
, the value is the number of seconds after enqueueing the message.replyqueue
andfailurequeue
are names of queues where a successful or failure response message will be stored.TPQREPLY
orTPQFAILUREQ
must be set in flags to indicate...