HP Fortran Programmer's Reference (September 2007)

I/O formatting
Edit descriptors
Chapter 9 241
The following sections describe the edit descriptors.
NOTE There is no single edit descriptor that defines a field for complex data. Instead,
you must use two real edit descriptors—the first for the real part of the number,
and the second for the imaginary part. The two edit descriptors may be
different or the same, and you can insert control and character string edit
descriptors between them.
Likewise, there are no edit descriptors for formatting derived types and
pointers. For derived types, you must specify the appropriate sequence of edit
descriptors that match the data types of the derived type’s components. For
pointers, you must specify the edit descriptor that matches the type of the
target object.
Character string (’...’ or ”...”) edit descriptor
The character string edit descriptor is used to write a character constant to a formatted
output record. It cannot be used to format input. You can use either apostrophes or quotation
marks to delimit the constant. Whichever you use, they must be balanced. That is, if you begin
with an apostrophe, you must also end with it. If the enclosed character constant includes a
k
P Control No Input/output Set scale factor to
k
.
Q Control No Input Return number of bytes
remaining to be read in
current input record.
S or SP Control No Output Print optional plus sign.
SS Control No Output Do not print optional plus sign.
T
c
Control No Input/output Move to column
c
.
TL
c
Control No Input/output Move
c
columns to the left.
TR
c
or
c
X Control No Input/output Move
c
columns to the right.
Z[
w
[
.m
]] Data Yes Input/output Convert integer data, using
hexadecimal base.
Table 9-1 Edit descriptors (Continued)
Descriptor Type Repeatable? I/O use Function