195 pts.
 Receiving a Message from Message Queue
I would like to receive the latest message from as400 message queue. Any one can suggest the best possible way.

Software/Hardware used:
AS400 CLP
ASKED: September 13, 2011  6:05 AM
UPDATED: March 31, 2012  4:45 PM

Answer Wiki:
you can use RCVMSG in a CL program.If you set WAIT(*MAX) the job will just sit there until a message comes in. You can then examine the message and take whatever action you want. After that go to EOJ or back to wait for another message. There are also message APIs that you can use if you so desire.
Last Wiki Answer Submitted:  September 13, 2011  11:22 am  by  CharlieBrowne   32,865 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,865 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

There are all kinds of examples in the Information Center. See the Messages topic under CL programming to get all kinds of examples along with most of what you’ll ever need to know about messages.

Tom

 108,135 pts.

 

Thanks for your help charlie. It works for me.

 195 pts.