You can send status messages from your CL procedure or program, using the Send Program Message (SNDPGMMSG) command, to the external message queue (*EXT) for the job or to a call message queue .
When a status message is sent to a call message queue, the receiving program or procedure can monitor for the arrival of the status message and can handle the condition it describes. If the receiving program or procedure does not monitor for the message, control returns to the sender to resume processing.
Status messages are not included in the job log for a job.