The T edit descriptor specifies a character position in an I/O record. It takes the following form:
The n is a positive integer literal constant (with no kind parameter) indicating the character position of the record, relative to the left tab limit.
On input, the T descriptor positions the external record at the character position specified by n. On output, the T descriptor indicates that data transfer begins at the nth character position of the external record.
In the following examples, the symbol ^ represents a nonprinting blank character.
Suppose a file has a record containing the value
ABC^^^XYZ, and the following statements are executed:
The values read first are XYZ, then ABC.
READ (11,10) VALUE1, VALUE2 10 FORMAT (T7,A3,T1,A3)
Suppose the following statements are executed:
The following line is printed at the positions indicated:
PRINT 25 25 FORMAT (T51,'COLUMN 2',T21,'COLUMN 1')
Position 20 Position 50 | | COLUMN 1 COLUMN 2
Note that the first character of the record printed was reserved as a control character. (For more information, see Section 11.7.)