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 CharlieBrowne32,865 pts.
All Answer Wiki Contributors: CharlieBrowne32,865 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
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.
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
Thanks for your help charlie. It works for me.