This page is a discussion on the mentioned topic. Most of the answers are in their original posted form, including any technical/spelling/grammatical errors. No guarantees are expressed or implied. :-)
Comments, corrections, concerns about this tip?
Do you know of a way to send a break msg. to a user name from RPG?
Answer(s):
In general, you can't send break messages to users - you can only break into a
workstation session; therefore, break messages can only be sent to workstation
message queues.
However,... the Send Message (QEZSNDMG) API will do some automatic checking
to see what workstation a user is logged on to and route the message to that
workstation. This is one of the Operational Assistant APIs. Note that it will
break at multiple workstations if the user is logged on different places at
the same time.
The API QEZSNDMG; see this link.
Or review for options the APIs in: this manual.
(1) Call QCMDEXC
(2) Call message API to send non-program message