In my CLLE program, I execute command
followed by the following command:
The RCVMSG command causes a Message key not found in message queue &1 error to be issued. Any idea what causes this or how to prevent it. What I am trying to do is have the program issue and inquiry message to the *EXT msg queue and then have the program receive and process the reply. &KEYVAR is defined as *CHAR 4 and &RPY is defined as *CHAR 1. Any suggestions as to how to accomplish this would be appreciated.
Code:
SNDPGMMSG MSGID(XYZ6001) MSGF(XYZMSGF) TOPGMQ(*EXT) + MSGTYPE(*INQ) KEYVAR(&KEY)
Code:
RCVMSG PGMQ(*EXT) MSGQ(*PGMQ) MSGTYPE(*RPY) + MSGKEY(&KEY) MSG(&RPY)
Comment