SENDING A BREAK MESSAGE

190 pts.
Tags:
CLP
RPG
RPGLE
I HAVE WRITTEN A CL PROGRAM WHICH USES QEZSNDMG TO SEND A BREAK MESSAGE TO SPECIFIC USERS. IT WORKS PERFECTLY EXCEPT IF THE USER ISN'T SIGNED ON, HE DOES NOT GET THE MESSAGE UNLESS HE DOES A DSPMSG. IS THERE A WAY TO MAKE THE MESSAGE AUTOMATICALLY POP UP AFTER THE USER SIGNS ON?

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Jonathan

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • JDWWms
    Break messages are designed to break into an active session if the session is not active then the break doesn't happen and there is no may to tell it to break later. The change you might need to make is for those selected users to change their initial program to do a dspmsg or change it to break mode when they signon and then change it back before running their normal signon program.
    0 pointsBadges:
    report
  • TomLiotta
    Also, users can turn break messages off. If break messages are turned off, you can't break in. It all depends on how much control you have over user jobs. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following