5.1.16 Data Queue Programs
All programs will return at least a status and message. The status is a string value or an i5/OS API reason code, such as:
- OK
- ERROR
- FATAL
- NOMSG
- CPF9801 - Object not found
- and so on...
JSMDQGET - Get message
|
Example
CHANGE FIELD(#JSMQLIB) TO(MYLIB)
CHANGE FIELD(#JSMQNME) TO(MYQUEUE)
CHANGE FIELD(#JSMQKEY) TO(*BLANK)
CALL PGM(JSMDQGET) PARM(#JSMQLIB #JSMQNME #JSMQKEY #JSMWAIT #JSMSTS #JSMMSG) NUM_LEN(*DEFINED)
JSMDQPUT - Put message
|
Example
CALL PGM(JSMDQPUT) PARM(#JSMQLIB #JSMQNME #JSMQKEY #JSMSTS #JSMMSG)
Also see