Example of Write statement:
Illustration:
(i) WRITE TRANS-RECORD AFTER ADVANCING 3 LINES.
This WRITE statement specified that the TRANS-RECORD is a record name of a file which has been assigned to the PRINTER. The present position of the stationery will be advanced by 3 lines, that is, there will be 2 blank lines and the current record will be written on the third line.
(ii) WRITE TRANS-RECORD BEFORE ADVANCING 3 LINES.
Primary the record will be written and then the page will be advanced by the 3 lines.