Blank line in report by COBOL

10 pts.
Tags:
AS/400 reporting
COBOL/400
Is it true that a cobol program while writitng a report always writes the first line as blank.

Answer Wiki

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

Yes – the default action of a WRITE to a PRINT file is “AFTER ADVANCING 1 LINE”. The only time I’ve found this annoying is on the first page of a report – unless you code for it the report always starts with a blank page.

Actually there is a BEFORE ADVANCING 1 LINE option that gets around this.

Discuss This Question: 1  Reply

 
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
  • WoodEngineer
    I programmed in COBOL a lot for a number of years in a former life. Never had the problem you described. It would be very surprising if a blank first page is the default. Granted, that was a few years ago. Maybe something changed in newer versions of COBOL.
    6,365 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