Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://crydee.sai.msu.ru/f90/asa.html
Дата изменения: Sat Mar 23 18:35:52 1996 Дата индексирования: Mon Oct 1 19:44:19 2012 Кодировка: Поисковые слова: п п п п п п п п п п п п п п |
blank New line + Not new line (overwriting, not available on all printers) 0 Double line feed 1 New pageOn some printers additional characters are being used, the digits are often used as vertical tabulators.
NOTE: Output with FORMAT(I5) or F7.3 or 1PE8.2 can cause output of a lot of papers with almost no printing. The reason is many occurrences of the control character "1", each indicating a new page. Therefore it is recommended to give an explicit blank first in all FORMAT:s used for output (if not another control character is being used). The blank character is obtained with 1X or ' ' or the obsolete 1H .
Therefore, never use the same FORMAT for both input and output.
When using VAX/VMS for output first on a file, which is to be printed later on paper, it is advisable to use the extension .DAT. It is only in that case the carriage control characters are being used automatically (by default).
Using UNIX it is more complicated to utilize the control characters, it is being done differently by different manufacturers.
f77 -vms prog.fand get the control characters removed from the screen output.
OPEN(1, FILE = 'outfile', CARRIAGECONTROL = 'FORTRAN')and get a file outfile which prints correctly. The command CARRIAGECONTROL is not standard, and will cause compilation error on most other systems.
f90 -vms prog.f90and get the control characters work properly on the screen output.
OPEN(1, FILE = 'outfile', CARRIAGECONTROL = 'FORTRAN')and get a file outfile which prints correctly. The command CARRIAGECONTROL is not standard, and will cause compilation error on most other systems.
fpr < outfile | lpr -Pprinter -w132This method works with most manufacturers, some however call fpr for asa. Please give the command man fpr or man asa. The last printer switch above, -w132, gives output in a landscape mode instead of portrait mode, and has nothing to do with control characters. It may be omitted.