Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29264 Discussions

how to force (page break) the output printed on different pages

hz3
Beginner
741 Views

Our old fortran programs were written in Watson Fortran (F77), the output can be printed out in different pages (not coutinuously line by line). when I re-wrote the program in Intel Fortan, just don't know how to force the output printed on different pages, like how to insert a page break to the file. Please help. Thanks in advance for your time.

0 Kudos
2 Replies
lklawrie
Beginner
741 Views


You can probably use the ansi form feed character, CHAR(). There used to be some extensions for preserving the old '1' in column one but not sure how to invoke, probably on the Open statement.

Linda

0 Kudos
lklawrie
Beginner
741 Views


Form Feed character is ASCII 12. Char(12) should do a page flip.

Linda

0 Kudos
Reply