Underline extends beyond text when printing from AS/400

Tags:
AS/400
DDS Character Input
iSeries printer output
RPG
I defined a 24-character field in DDS using fgid 4919 (goudy) with the underline keyword.  When I print the field from my RPG program the underline extends beyond the characters contained in the field.  The length of the underline varies depending on the number and width of the characters in the field.

 

How can I control the underline?



Software/Hardware used:
AS/400, RPG

Answer Wiki

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

Underline on the old printers was a character and to print it the printer did a carrage return without a line feed and then printed the underlines. That’s what’s happening to you. The underlines are a certain width, each of your characters are their particular width, not likely to match up.
Phil

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
  • TomLiotta
    It sounds as if values in the field may have trailing blanks, but you only want underlines for non-blank characters. Is that correct? Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    The printer can do it. You could pack into the character string output variable the escape code to turn on underline + %trim(actual value) + the escape code to turn off underline Phil
    49,550 pointsBadges:
    report
  • TomLiotta
    The implication of Phil's comment is that the DDS UNDERLINE keyword causes a "field" to be underlined in printed output, but his code would cause the "value in a field" to be underlined. DDS has no knowledge of where a value might have trailing spaces. Underlining spaces is a perfectly valid printer operation. A field doesn't have to have any non-blank characters at all in order for it to be underlined. In order to customize underlining, it can require additional programming. 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