C CALL 'QRCVDTAQ' C PARM 'MYQUEUE' DTQ 10 C PARM 'QTEMP' DTLIB 10 C PARM 100 LENGTH 50 C PARM DATA C PARM 0 WAITT 50 C PARM ORDER 2 C PARM KLEN 30 C PARM KEY C PARM SNDLEN 30 C PARM ID
DTQ as400 Data queue name
DTLIB as400 library name
LENGTH Length of entry received.
zero if no entry received.
DATA Entry received. Must be minimum length indicated by LENGTH at least.
WAITT Time in seconds to wait for an entry.
Zero = no wait.
-ve number = wait until entry received.
(only used if dataqueue keyed, optional)
ORDER Condition operator, EQ, NE, LT, LE, GT or GE.
KEYLEN Key length
KEY Key value. Length indicated by KEYLEN.
SNDLEN Length of SENDER field
SENDER Field to receive sender ID. Usually 44 bytes
Using as400 QRCVDTAQ api to retrieve a message / entry from a dataqueue