Table of contents

Messages

*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

tOrHSagHTR.png

SNDMSG → send message to a user without interrupting

b8l0M6fgVk.png

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

Execution environment

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