RPG invocation
C*..1....:....2....:....3....:....4....:....5....:....6....:....7.. C CALLP MQINQ(HCONN : HOBJ : SELCNT : C SELS(1) : IACNT : INTATR(1) : C CALEN : CHRATR : CMPCOD : C REASON)The prototype definition for the call is:
D*..1....:....2....:....3....:....4....:....5....:....6....:....7.. DMQINQ PR EXTPROC('MQINQ') D* Connection handle D HCONN 10I 0 VALUE D* Object handle D HOBJ 10I 0 VALUE D* Count of selectors D SELCNT 10I 0 VALUE D* Array of attribute selectors D SELS 10I 0 D* Count of integer attributes D IACNT 10I 0 VALUE D* Array of integer attributes D INTATR 10I 0 D* Length of character attributes buffer D CALEN 10I 0 VALUE D* Character attributes D CHRATR * VALUE D* Completion code D CMPCOD 10I 0 D* Reason code qualifying CMPCOD D REASON 10I 0