FORTRAN Reference Manual
Statements
FORTRAN Reference Manual—528615-001
7-40
Termination of Format Control
as
FORMAT (I6, I6, F6.2, F6.2, (I5, E3.1, I5, E3.1))
Blanks are not significant in a format specification unless they are part of a literal 
string.
Termination of Format Control
For each repeatable edit descriptor in a format specification, format control determines 
whether there is a corresponding I/O list item. If it finds a corresponding item, it 
transmits the specified edited information between the item and the record and 
proceeds to the next item. If it does not find a corresponding item, format control 
terminates.
If format control encounters a colon edit descriptor in a format specification and you 
have not specified another item, format control terminates.
If format control encounters the rightmost parenthesis of a complete format 
specification and you have not specified another list item, format control terminates.
However, if there is another list item, FORTRAN positions the file at the beginning of 
the next record and format control reverts to the beginning of the format specification 
terminated by the last preceding right parenthesis. If there is no preceding right 
parenthesis, format control reverts to the first left parenthesis of the format 
specification. If format control reverts to a parenthesis that is preceded by a repeat 
specification, it reuses the repeat specification. In the following examples, the arrows 
indicate the position of format control in the case of an extra list item:
FORMAT (I5, F4.2, 3(4G9.3, I2))
     !
FORMAT (I5, F4.2, G13.6)
 !
After FORTRAN processes each I, F, E, D, G, B, O, Z, L, A, H, or apostrophe edit 
descriptor, it positions the file after the last character read or written in the current 
record.
After FORTRAN processes each T, TL, TR, X, or slash edit descriptor, it positions the 
file as specified by that edit descriptor.
During a read operation, any unprocessed characters of the record are skipped when 
the next record is read.
Edit Descriptors
Edit descriptors specify data conversions to perform. Repeatable edit descriptors direct 
the editing of values in a data list. Nonrepeatable edit descriptors provide edit control 
between the FORMAT statement and one or more records.










