FORTRAN Reference Manual
Introduction to File I/O in the HP NonStop
Environment
FORTRAN Reference Manual—528615-001
5-17
Unstructured Files
•
All physical records are the same length.
•
All logical records are the same length.
•
You can access records sequentially or directly.
•
You can read, write, or update any record in the file but you can never delete a
record once it has been written.
•
You cannot use alternate keys.
EDIT Format Files
EDIT format files are unstructured files. Each line of an EDIT format file is a record of
that file. The record number equals the EDIT line number times 1000; for example, line
number 12.34 is record number 12340.
You can create an EDIT format file in any of the following ways:
•
Specify CODE 101 in a UNIT directive
•
Specify CODE 101 in a TACL ASSIGN command
•
Use the FUP utility. The following commands create the EDIT format file
CREDITOR:
In an EDIT format file:
•
Physical records vary in length. The maximum length is always 239 bytes.
•
Logical records also vary in length, up to the maximum length specified when the
file is connected.
•
You can read records sequentially.
•
You can rewind the file.
•
You cannot use keyed access.
•
For a FORTRAN program running as a NonStop process pair:
°
You cannot write, update, or delete records in the file.
°
You cannot backspace over records in the file.
°
You cannot use direct access.
•
For a FORTRAN program that is not running as a NonStop process pair:
1> FUP
File Utility Program - T6553D10 - (08JUN92) System \ASYS
Copyright Tandem Computers Incorporated 1981, 1983, 1985-1992
-set type u
-set code 101
-create creditor
CREATED - $AVOL.USER.CREDITOR
-exit
2>










