Thanks for the replies. Sorry if i caused you guys confuse as I only touched COBOL about 2 weeks.
Well in JCL, NOADV option is selected and RECFM=FB, so the record length should be 133, right? Actually, my program is very simple, get data from an input file then print result on output file. The task I am trying to do is, I want to print a Heading at the first line of the report, then the second line will be blanked, and the third line print another Heading.
So I coded as below:
WRITE report FROM heading-1.
WRITE report FROM heading-2
AFTER ADVANCING 1 LINE.
However, the report showed that the second line is not blank but continue print the second Heading even when I change the number of line to 2. Then, I change the code again to:
WRITE report FROM heading-1
BEFORE ADVANCING 1 LINE.
WRITE report FROM heading-2.
This time there is a blank line between Heading-1 and Heading-2 (first and third line), but there is a blank line between third and fifth line...which every even number line is a blank line. Then this problem really confusing me. I read the books, surf the net but seems no one faced the same problem as me and I thought the difference between BEFORE and AFTER just print the statement then space a blank line or space a blank line before print statement, isn't it?