Changing color of specs line

575 pts.
Tags:
AS/400
We received a question from Subrata, and instead of throwing it to the site experts (we're deluging them with a backlog), I thought I'd ask the question here to see if other users can help. "I want to change the color of an H specs line to white. How do I do this?"

Answer Wiki

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

Hi,

You’ll need to update one of the spaces before the H with a hex value. I think Highlight should give you white text.

20 = Normal
21 = Reverse
22 = Highlight
24 = Underline
26 = Highlight & Underline
27 = Nondisplay
30 = Column separators

You can do this using an editor that will let you go into hex mode or you can write a program that will update the position before the H with a hex value.

Hope this helps, if you need more info I’ll try and find one of my old programs that does this sort of thing.

Regards,

Martin Gilbert.

Discuss This Question: 2  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
  • TomLiotta
    Although the answer is correct, it should be noted that this change should not be made. Source members are not intended to hold non-text bytes in the source data field. This isn't a major problem when all access to source is through SEU. But when access is through a remote system such as a PC using WDSC or RDi or other development toolset, transferring non-text bytes can cause messes in the received data. Avoid coloring source by inserting hex character codes. Tom
    125,585 pointsBadges:
    report
  • WoodEngineer
    About 10 years ago, we had a developer who liked to "enhance" the appearance of his code with hex values in position 5, just before the H/F/C specs. At first the colors looked cool but when we came back later to work on his programs it became very annoying. I finally wrote a little routine to clear position 5 when I have to work on one of his programs. Several of us use WDSc/RSE and have had no problems editing and compiling his programs. We suspect that is because he placed his special codes outside the normal coding area. From time to time we do place display enhancements in comments to draw attention to important information or special compile-time instructions. However, since those codes are in comments they do not cause any problems.
    6,355 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