10 pts.
 Blank line in report by COBOL
Is it true that a cobol program while writitng a report always writes the first line as blank.

Software/Hardware used:
ASKED: June 10, 2009  11:10 AM
UPDATED: June 11, 2009  6:00 PM

Answer Wiki:
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.
Last Wiki Answer Submitted:  June 11, 2009  6:00 pm  by  Rlsantucijr   445 pts.
All Answer Wiki Contributors:  Rlsantucijr   445 pts. , MDratwa   645 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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.

 5,525 pts.