5 pts.
 Highlighting messages in a queue?
Is there some way to add a field attribute to a message sent to a message queue?

Software/Hardware used:
V5R4 OS
ASKED: Feb 13, 2012  11:13 PM GMT
UPDATED: March 19, 2012  2:09:02 PM GMT
150 pts.

Answer Wiki:
Last Wiki Answer Submitted:  Mar 19, 2012  2:08 PM (GMT)  by  MTidmarsh   150 pts.
Latest Answer Wiki Contributors:  Rebek4love   3,500 pts., BrunoVARON   45 pts.
To see other answers submitted to the Answer Wiki View Answer History.
Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _




 

AFAIK, you can’t.

If you are creating the message text, you can embed display color attributes in the message.

However, this doesn’t apply to messages sent to *MSGQs that are displayed with DSPMSG functions. It only applies to display file message displays. So, for example, you couldn’t expect colored messages to show as colored in the QSYSOPR message queue display or in a workstation message display. Undisplayable characters are automatically replaced with x’3F’. Otherwise unpredictable effects would happen from programs with bugs sending messages (or even programs manipulating display attributes on purpose).

But you could use a SNDPGMMSG function to send a *STATUS message out to a display file message subfile and see the appropriate color.

Tom

 66,925 pts.