Download HP Fortran for OpenVMS User Manual

Transcript
•
Stream_LF files use only a line-feed (new line) as the terminator, so
Stream_LF files must not contain embedded line-feed (new line) characters.
The layout of Stream_CR and Stream_LF records appears in Figure 6–2.
Figure 6–2 Stream_CR and Stream_LF Records
User Data
Record length (RECL=value)
1
ZK−9823−GE
6.5.4 Other File Characteristics
Other file characteristics include:
•
Carriage control attributes of each record (CARRIAGECONTROL specifier)
•
Whether formatted or unformatted data is contained in the records (FORM
specifier)
•
The record length (RECL specifier)
•
Whether records can span block boundaries (NOSPANBLOCK specifier)
•
For an indexed file being created, the key number, its location, and its data
type (KEY specifier)
The units used for specifying record length depend on the form of the data:
•
For formatted files (FORM=’FORMATTED’), specify the record length in
bytes.
•
For unformatted files (FORM=’UNFORMATTED’), specify the record
length in 4-byte units, unless you specify the /ASSUME=BYTERECL
qualifier to request 1-byte units (see Section 2.3.7).
For More Information:
•
On statement syntax and specifier values (including defaults), see the HP
Fortran for OpenVMS Language Reference Manual.
•
On file characteristics, see Section 6.6.3 and the OPEN statement in the
HP Fortran for OpenVMS Language Reference Manual.
•
On I/O performance considerations, see Section 5.5.
6–14 HP Fortran Input/Output