The slash edit descriptor terminates data transfer for the current record and starts data transfer for a new record. It takes the following form:
The r is a repeat specification. It must be a positive default integer literal constant; no kind parameter can be specified.
The range of r is 1 through 2147483647 (2**31-1) on Intel® 64 and IA-64 architectures; 1 through 32767 (2**15-1) on IA-32 architecture. If r is omitted, it is assumed to be 1.
Multiple slashes cause the system to skip input records or to output blank records, as follows:
WRITE (6,99)
99 FORMAT ('1',T51,'HEADING LINE'//T51,'SUBHEADING LINE'//)
The following lines are written:
Column 50, top of page
|
HEADING LINE
(blank line)
SUBHEADING LINE
(blank line)
(blank line)
Note that the first character of the record printed was reserved as a control character (see Printing of Formatted Records).
Examples
! The following statements write spreadsheet column and row labels:
WRITE (*, 100)
100 FORMAT (' A B C D E' &
& /,' 1',/,' 2',/,' 3',/,' 4',/,' 5')
This example generates the following output:
A B C D E
1
2
3
4
5
See Also