FORTRAN Reference Manual
Run-Time Diagnostic Messages
FORTRAN Reference Manual—528615-001
G-9
Formatter Run-Time Messages
256
Cause. A routine referenced a unit that was not specified in a UNIT compiler directive
or as a constant expression in the unit specifier of an I/O statement.
Effect. If the program executed an I/O statement that includes an ERR clause or an
IOSTAT clause, the program retains control. Otherwise, the run-time library terminates
your program.
Recovery. Specify the unit number in a UNIT compiler directive or use a constant
expression in the unit specifier of the I/O statement, and recompile your program.
257
Cause. An I/O statement contains an illegal parameter or parameter combination. For
example, in a WRITE statement, UNLOCK=.TRUE. is invalid unless UPDATE is also
present with a true value.
Effect. If the program executed an I/O statement that includes an ERR clause or an
IOSTAT clause, the program retains control. Otherwise, the run-time library terminates
your program.
Recovery. Correct the parameter combination.
258
Cause. An OPEN statement specifies STATUS='SCRATCH' as well as a subvolume
name, a file name, or both.
Effect. File cannot be opened.
Recovery. A file opened with STATUS='SCRATCH' can either not specify a location
for the file, or can specify a volume name but neither a subvolume name nor a file
name.
Change the OPEN statement to either not specify a file name or to specify only a
volume name:
OPEN (60, STATUS='SCRATCH') <-- OK
OPEN (60, STATUS='SCRATCH', FILE= '$U1') <-- OK
OPEN (60, STATUS='SCRATCH', FILE= '$U1.VOL') <-- ERROR
OPEN (60, STATUS='SCRATCH', FILE= '$U1.VOL.SCR1') <-- ERROR
Unknown unit value nnn
Invalid parameter value
OPEN specifies SCRATCH status and file name










