HP Fortran Programmer's Reference (September 2007)

I/O formatting
Edit descriptors
Chapter 9254
Q edit descriptor
The Q edit descriptor (an HP extension) has the same effect as the E edit descriptor on output,
except that it outputs a Q for the exponent instead of an E.
The Q edit descriptor can also be used to determine the number of bytes remaining to be read
in an input record; see “Q (bytes remaining) edit descriptor” on page 260.
H (Hollerith) edit descriptor
The H edit descriptor outputs a specified number of characters. The syntax is:
n
H
character-sequence
where:
n
is a positive integer that specifies the number of characters to output. This
number must exactly match the actual number of characters in
character-sequence
.
character-sequence
is the string of representable characters (including blanks) to output.
Table 9-15 provides examples of the Hollerith edit descriptor on output.
I (Integer) edit descriptor
The I edit descriptor defines a field for an integer number. As an HP extension, it can also be
used on real and logical data. The corresponding I/O list item must be a numeric or logical
type.
The syntax of the integer edit descriptor is:
[
r
I][
w
[.
m
]]
where:
r
is a positive integer constant, specifying the repeat factor.
Table 9-15 H edit descriptor: output examples
Descriptor Field width Output
12H
bbb
Spaces
bbb
12
bbb
Spaces
bbb
14H”It
b
isn't
b
so.” 14 ”It
b
isn't
b
so.”