## 8.1.3 FORMAT Codes

Table 8-1 summarizes the Fortran formatting codes.

### Table 8-1 FORMAT Code Summary

Code | Form | Effect | See
--- | --- | --- | ---
A | A[w] | Transfers character or Hollerith values. | Section 8.3.4
BN | BN | Specifies that embedded and trailing blanks in a numeric input field are to be ignored. | Section 8.4.3.1
BZ | BZ | Specifies that embedded and trailing blanks in a numeric input field are to be treated as zeros. | Section 8.4.3.2
D | Dw.d | Transfers real values (D exponent field indicator). | Sections 8.3.2.3 and 8.3.2.5
E | Ew.d[Ee] | Transfers real values (E exponent field indicator). | Sections 8.3.2.2 and 8.3.2.5
F | Fw.d | Transfers real values. | Sections 8.3.2.1 and 8.3.2.5
G | Gw.d[Ee] | Transfers real values: on input, acts like F code; on output, acts like E code or F code, depending on the magnitude of the value | Sections 8.3.2.4 and 8.3.2.5
H | nHc...c | Transfers data between the H field descriptor and an external record. | Section 8.4.5.1
I | Iw[.m] | Transfers decimal integer values. | Section 8.3.1.1
L | Lw | Transfers logical data: on input, transfers characters; on output, transfers T or F. | Section 8.3.3
O | Ow[.m] | Transfers octal values. | Section 8.3.1.2
P | nP | Alters locations of decimal points. | Section 8.4.4
Q | Q | Gets the number of characters remaining to be read from an input record. | Section 8.5.3
S | S | Reinvokes optional plus characters in numeric output fields; counters the action of SP and SS. | Section 8.4.2.3
SP | SP | Writes plus characters that are otherwise optional into numeric output fields. | Section 8.4.2.1
SS | SS | Suppresses optional plus characters in numeric output fields. | Section 8.4.2.2
T | Tn | Specifies positional tabulation. | Section 8.4.1.1
TL | TLn | Specifies relative tabulation (left). | Section 8.4.1.2
TR | TRn | Specifies relative tabulation (right). | Section 8.4.1.3
X | nX | Specifies that n characters are to be skipped. | Section 8.4.1.4
Z | Zw[.m] | Transfers hexadecimal values. | Section 8.3.1.3
$ | $ | Suppresses trailing carriage return during interactive I/O. | Section 8.5.2
: | : | Terminates format control if there are no more items in the I/O list | Section 8.5.1
'...'[1] | '...' | Transfers data between the apostrophes and an external record. | Section 8.4.5.2
[1] On Alpha processors, these delimiters can also be quotation marks ("). For more information, see Section A.13.)

For More Information:

- On field separators, see Sections 8.7 and 8.8.

- On slash (/) record terminators, see Section 8.7.

- On individual field descriptors, see Section 8.3.

- On individual edit descriptors, see Sections 8.4 and 8.5.

Previous Page Next Page Table of Contents