+

Search Tips | Advanced Search

MQCBC (Callback context) on IBM i

Structure describing the callback routine.


Overview


Fields

The MQCBC structure contains the following fields; the fields are described in alphabetical order:


Initial values

Table 2. Initial values of fields in MQCBC
Field name Name of constant Value of constant
CBCSID CBCSI 'CBC¬'
CBCVER CBCV1 1
CBCCALLT None 0
CBCHOBJ HOUNUH -1
CBCCALLBA None Null pointer or null bytes
CBCCONNAREA None Null pointer or null bytes
CBCCC CCOK 0
CBCREA RCNONE 0
CBCSTATE CSNONE 0
CBCLEN None 0
CBCBUFFLEN None 0
CBCFLG None 0
CBCRCD none 0
Note:
  1. The symbol ¬ represents a single blank character.


RPG declaration

     D* MQCBC Structure
     D*
     D*
     D* Structure identifier
     D  CBCSID                 1      4    INZ('CBC ')
     D*
     D* Structure version number
     D  CBCVER                 5      8I 0 INZ(1)
     D*
     D* Why Function was called
     D  CBCCALLT               9     12I 0 INZ(0)
     D*
     D* Object Handle
     D  CBCHOBJ               13     16I 0 INZ(-1)
     D*
     D* Callback data passed to the function
     D  CBCCALLBA             17     32*   INZ(*NULL)
     D*
     D* MQCTL Data area passed to the function
     D  CBCCONNAREA           33     48*   INZ(*NULL)
     D*
     D* Completion Code
     D  CBCCC                 49     52I 0 INZ(0)
     D*
     D* Reason Code
     D  CBCREA                53     56I 0 INZ(0)
     D*
     D* Consumer State
     D  CBCSTATE              57     60I 0 INZ(0)
     D*
     D* Message Data Length
     D  CBCLEN                61     64I 0 INZ(0)
     D*
     D* Buffer Length
     D  CBCBUFFLEN            65     68I 0 INZ(0)
     D*
     ** Flags containing information about
     D* this consumer
     D  CBCFLG                69     72I 0 INZ(0)
     D* Ver:1 **
     D* Number of milliseconds before reconnect attempt
     D  CBCRCD                73     76I 0 INZ(0)
     D* Ver:2 **
     D*