how can i manage lines

5 pts.
Tags:
AS/400
i have a spaceb lines and then skipb x line. in some cases the a line is written on line x and then the skipb write over it.

Answer Wiki

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

Your question appears to relate to AS/400 Printer file or RPG O specs.
Please provide appropriate keywords so we can filter questions to the best experts.

SPACEB will advance the printer the number of lines requested
if SPACEB(2) would advance the paper two lines before printing the record or field.

SKIPB will advance to a particular line on the printed page.
SKIPB(15) will advance to the 15th line of the page, however, if it’s already on the 16th line then the skip will advance to the 15th line of the next page.

SKIP is typically used to move to the top of a new page or the top of a new section of a page.

Your question
if yous SPACEB(2) printed something on line 15
and then SKIP(15) was issued, the next items printed would also be on line 15.

Phil

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
  • Michael Morisy
    Thanks for suggesting the tags and parsing the question, Phil!
    8,323 pointsBadges:
    report
  • deepu9321
    Keywords SPACEB, SPACEA, SKIPB & SKIPA are used for handling with the spaces between lines. SPACEB(001) - When this keyword is used, a line will be skipped before writing Record to printer files. SPACEA(001) - When we use this keyword, The line will be skipped after writing this Record. Means, There will be line gap before writing the next record and after writing the current Record. SKIPB(001) - When this keyword is used, The Control will skip to the Next page and a line will get skipped before writing a Record in the Next Page. SKIPA(001) - When this keyword is used, The Control will skip to the Next page and One Line will be skipped after writing a Record. Eg. SPACEB(005), Record will get written to Printer File after 5 Spaces. SKIPB(005), Page Skip will happen, and Record will get written after 5 spaces in new page(6th line in new page) SPACEA & SKIPA will work in similar manner. Pradeep.
    4,275 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