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,835 pts.