I would like to display error message in red color using ERRMSG or ERRMSGID.[Br style="padding: 0px; margin: 0px;" />[Br style="padding: 0px; margin: 0px;" />Is it possible?
Software/Hardware used:
AS400
ASKED:
January 5, 2011 11:20 AM
UPDATED:
January 5, 2011 9:05 PM
I haven’t seen ERRMSG() ever supporting any method of color attributes. However, there is the possibility that ERRMSGID() might be possible.
When creating the message definition used for ERRMSGID(), try placing the RED display attribute hex value at the beginning of or embedded within the message text. You might want to create a small CL program to fashion the ADDMSGD or CHGMSGD command in order to concatenate hex ’28′ with the text. Use hex ’20′ later in the text if you choose to return color back to normal (and if it works with ERRMSGID() at all).
I wouldn’t plan on it working, but it seems possible. I’d guess that this isn’t a usual thing for ERRMSG()/ERRMSGID() because of how processing flows for the user when those come into effect.
Tom