When you define a user profile you can assign an initial program to be run when the user signs on. We use a CL program with the commands:
RTVJOBA JOB(&USRJOB) USER(&USRPRF)
CHGMSGQ MSGQ(&USRJOB) DLVRY(*BREAK)
CHGMSGQ MSGQ(&USRPRF) DLVRY(*BREAK)
The first retrieves the name of the workstation and the user signed on, the next two put both associated message queues into break mode.
The act of putting the message queue into break message will display any messages currently on the queue.
In our shop we actually clear the message queues first because we don’t want old messages to clog up the display unless the user is a *SYSOPR or above.
Hope it helps