Force Carriage Return

pts.
Tags:
AS/400
I want to know how to force carriage return in externally described printer file ?

Answer Wiki

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

Can you be more specific?

If you want to force the output down a line after a field or record use SPACEA(1), SPACEA(2) for two lines, etc.

If you want to print something “to the left” of the current field, code the new field or text with a starting position less than the current.

HTH

========================================================

Simply execute a format in the printer file that has a SPACEA() or SPACEB() keyword. It doesn’t really cost much to include such a format in a printer file. It doesn’t have to really print anything — define a constant single character blank if you want to.

Tom

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
  • Westdeb
    If you want to add a line only under certain conditions, you can add a record format to the print file like: A Line 1' ' and then write that format when you need to.
    0 pointsBadges:
    report
  • TheQuigs
    From: msabsh To: TheQuigs Date Sent: 18 Aug 2005 10:41 EDT (14:41 GMT) Subject: Force Carriage Return PRIVATE MESSAGE I want to send carriage return (hex code '0D') to the printer. -------------------------------------------------------------- You could try using the DFT keyword specifying DFT(x'0D') TRNSPY. I believe I've used this before, but it's been a while.
    0 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