Table of contents
*Messages are stored in a mailboxe called message queue, of object type MSGQ. We can have informational messages (example object not found) or inquiry (example asking for an action).
<aside> 💡
Informational messages can arrive as a simple pictogram at the bottom of the screen (*NOTIFY), or immediately by blocking the screen until an action is taken (*BREAK)
</aside>
CRTMSGQ → create a queue
WRKACTJOB SBS(QINTER) → display the screen of connected users

SNDMSG → send message to a user without interrupting

SNDBRKMSG → interrupt a user to display a message
<aside> 💡
CALL QEZSNDMG → we can also use an API to send messages
</aside>
SNDUSRMSG → Send User Message
SNDPGMMSG → Send Program Message
*DSPMSG → display received messages (default is WRKUSR)
DSPMSG QSYSOPR → display system messages
Objects required for a job execution environment are :
***SBSD : subsystem description *JOBQ : job queue *JOBD : job description (parameters for executing a job) CLS : class OUTQ : output queue