Highlighting or sending colored text from CL to QSYOPR

Tags:
AS/400
CL programming
QSYSOPR
Is it possible to send a break message or User Message from a CL Program to QSYSOPR message queue with highlighted text or in different color? The purpose of this is to catch the operators attention to this message from other normal messages.

Answer Wiki

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

You should be able to “CONCAT” the correct hex char in front of the text you send to QSYSOPR and the console should display the attrib from the front char of the message (I assume the monitor will handle colors and/or handle highlites).

Hex codes 27 & 37 are dark and not permitted.
Hex codes 21-23 may cause the line to be shifted one char to left
on some printers.

HEX ’20′ (Black/Back to GREEN)
HEX ’21′ (REVERSE GREEN)
HEX ’22′ (WHITE)
HEX ’23′ (REVERSE WHITE)
HEX ’24′ (UNLINED GREEN)
HEX ’25′ (UNLINED REVERSE GREEN)
HEX ’26′ (UNLINED WHITE)
HEX ’28′ (RED)
HEX ’29′ (REVERSE RED)
HEX ’2C’ (UNLINED RED)
HEX ’2D’ (UNLINED REVERSE RED)
HEX ’30′ (TURQUOISE)
HEX ’31′ (REVERSE RUTQUOISE)
HEX ’32′ (YELLOW)
HEX ’33′ (REVERSE YELLOW)
HEX ’34′ (UNLINED TURQOISE)
HEX ’35′ (UNLINED REVERSE TURQOISE)
HEX ’36′ (UNLINED YELLOW)
HEX ’38′ (PINK)
HEX ’39′ (REVERSE PINK)
HEX ’3A’ (BLUE)
HEX ’3B’ (REVERSE BLUE)
HEX ’3C’ (UNLINED PINK)
HEX ’3D’ (UNLINED REVERSE PINK)
HEX ’3E’ (UNLINED BLUE)
HEX ’40′ (GREEN (NORMAL))

Hi,

I’ve tried the above method before, but never got it to work. It seems that any hex attributes that you send get removed before the message gets put on the queue.

Regards,

Martin Gilbert.

Discuss This Question: 3  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
  • slack400
    Try sending it as a break message. Also QSYSOPR MSGQ gets filled up with tons of information. How about setting up an application MSGQ and they can monitor from there. I utilize SMS and monitoring software. So anything critical I have it send out emails and text messages to the appropriate staff. Who wants to pay operators to sit around staring at consoles and playing solitaire. a few bucks a year for maintenance costs and no worries about important messages not getting read immediately by the support staff.
    2,705 pointsBadges:
    report
  • Cursorposition
    Hi, Gilbert is right. I tried the same method but it is not functioning except just creating a highlighed character in front of the message. Any one have another Idea? Regards Baba
    195 pointsBadges:
    report
  • BigKat
    I read a tip one time that said to add a new message to the MSGF that had the desired HEX attribute and a substitution parameter for the text then you use the new file to send the text to QSYSOPR Kevin - Affiliated
    8,220 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