8.1.3 FORMAT Codes

Table 8-1 summarizes the Fortran formatting codes.

Table 8-1 FORMAT Code Summary

Code  Form  Effect  See 
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  
Dw.d  Transfers real values (D exponent field indicator).  Sections 8.3.2.3 and 8.3.2.5  
Ew.d[Ee]  Transfers real values (E exponent field indicator).  Sections 8.3.2.2 and 8.3.2.5  
Fw.d  Transfers real values.  Sections 8.3.2.1 and 8.3.2.5  
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  
nHc...c  Transfers data between the H field descriptor and an external record.  Section 8.4.5.1  
Iw[.m]  Transfers decimal integer values.  Section 8.3.1.1  
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  
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 
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  
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  
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:


Previous Page Next Page Table of Contents