Highlighting messages in a queue?

5 pts.
Tags:
iSeries message queues
iseries v5r4
Is there some way to add a field attribute to a message sent to a message queue?

Software/Hardware used:
V5R4 OS
ASKED: February 13, 2012  11:13 PM
UPDATED: March 19, 2012  2:09 PM

Answer Wiki

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

Hi Rod,

I think no.
Characters attributes are analyzed when the message is displayed on the queue, and all non “normal” characters are displayed with reverse video. (it can be a solution)

exemple :

PGM

DCL VAR(&MSG) TYPE(*CHAR) LEN(30)
DCL VAR(&C) TYPE(*CHAR) LEN(1) VALUE(X’20′)

CHGVAR VAR(&MSG) VALUE(&C *CAT ‘Test Message’ *TCAT &C)
SNDMSG MSG(&MSG) TOUSR(*SYSOPR)

ENDPGM

Message is displayed with reverse video brackerebekahalkhalifa@yahoo.com
Hello…
I wish you best Compliment of the season,with hope that you are physically and healthly alright,l do believe that this mail will reach in good condition. My name is Rebekah i saw your profile in www.itknowledgeexchange.techtarget.com and admire it, i think we can make it together, please i would like you to contact me through my email address:( rebekahalkhalifa@yahoo.com ) i will tell you more about myself, also send you my photo,as soon as you contact me back, hopping for your lovely reply soonest,
Rebekah….

Discuss This Question: 1  Reply

 
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
  • TomLiotta
    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
    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