Receiving a Message from Message Queue

195 pts.
Tags:
AS/400 Message Monitoring
AS/400 message queues
CL programs
CLP
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • Cursorposition
    Thanks for your help charlie. It works for me.
    195 pointsBadges:
    report
  • Cursorposition
    [...] 10. CharlieBrowne provides the approved answer on receiving a message from the message queue. [...]
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following