Input/Output Errors

The number and text of each input-output error message is given below, with the context in which it could occur and an explanation of the fault which has occurred. If the input-output statement includes an IOSTAT=STAT specifier, then an occurrence of any of the errors that follow will cause the STAT variable to become defined with the corresponding error number.

Error

Message

Where Occurring

Description

117

Unit not connected

OPEN

An attempt was made to read or write to a closed unit.

118

File already connected

OPEN

An attempt was made to OPEN a file on one unit while it was still connected to another.

119

ACCESS conflict

OPEN, Positional, READ, WRITE

When a file is to be connected to a unit to which it is already connected, then only the BLANK, DELIM, ERR, IOSTAT and PAD specifiers may be redefined. An attempt has been made to redefine the ACCESS specifier. This message is also used if an attempt is made to use a direct-access I/O statement on a unit which is connected for sequential I/O or a sequential I/O statement on a unit connected for direct access I/O.

120

RECL conflict

OPEN

When a file is to be connected to a unit to which it is already connected, then only the BLANK, DELIM, ERR, IOSTAT and PAD specifiers may be redefined. An attempt has been made to redefine the RECL specifier.

121

FORM conflict

OPEN

When a file is to be connected to a unit to which it is already connected, then only the BLANK, DELIM, ERR, IOSTAT and PAD specifiers may be redefined. An attempt has been made to redefine the FORM specifier.

122

STATUS conflict

OPEN

When a file is to be connected to a unit to which it is already connected, then only the BLANK, DELIM, ERR, IOSTAT and PAD specifier may be redefined. An attempt has been made to redefine the STATUS specifier.

123

Invalid STATUS

CLOSE

 STATUS=DELETE has been specified in a CLOSE statement for a unit which has no write permissions; for example, the unit has been opened with the READONLY specifier.

125

Specifier not recognized

OPEN

A specifier value defined by the user has not been recognized.

126

Specifiers inconsistent

OPEN

Within an OPEN statement one of the following invalid combinations of specifiers was defined by the user:

ACCESS=DIRECT was specified when STATUS=APPEND

BLANK=FORMATTED was specified when FORM= UNFORMATTED

127

Invalid RECL value

OPEN, DEFINE FILE

The value of the RECL specifier was not a positive integer.

128

Invalid filename

INQUIRE

 The name of the file in an Inquire by file statement is not a valid filename.

129

No filename specified

OPEN

In an OPEN statement, the STATUS specifier was not SCRATCH or UNKNOWN and no filename was defined.

130

Record length not specified

OPEN

The RECL specifier was not defined although ACCESS=DIRECT was specified.

131

An equals expected

Namelist READ

A variable name, array element or character substring reference in the input was not followed by an `='.

132

Value separator missing

List-Directed READ, Namelist READ

A complex or literal constant in the input stream was not terminated by a delimiter (that is, by a space, a comma or a record boundary).

133

Value separator expected

Namelist READ

A subscript value in a character substring or array element reference in the input was not followed by a comma or close bracket.

134

Invalid scaling

WRITE with FORMAT

If d represents the decimal field of a format descriptor and k represents the current scale factor, then the ANSI Standard requires that the relationship -d<k<d+2 is true when an E or D format code is used with a WRITE statement. This requirement has been violated.

135

Invalid logical value

Formatted READ

A logical value in the input stream was syntactically incorrect.

136

Invalid character value

Namelist READ

A character constant does not begin with a quote character.

137

Value not recognized

List-Directed READ, Namelist READ

An item in the input stream was not recognized.

138

Invalid repetition value

List-Directed READ, Namelist READ

The value of a repetition factor found in the input stream is not a positive integer constant.

139

Illegal repetition factor

List-Directed READ, Namelist READ

A repetition factor in the input stream was immediately followed by another repetition factor.

140

Invalid integer

Formatted READ

The current input field contained a real number when an integer was expected.

141

Invalid real

Formatted READ

The current input field contained a real number which was syntactically incorrect.

143

Invalid complex constant

List-Directed READ, Namelist READ

The current input field contained a complex number which was syntactically incorrect.

144

Invalid subscript

Namelist READ

A subscript value in an array element reference in the input was not a valid integer.

145

Invalid substring

Namelist READ

A subscript value in a character substring reference was not a valid integer or was not positive.

146

Variable not in Namelist

Namelist READ

The data contained an assignment to a variable which is not in the NAMELIST list.

147

Variable not an array

Namelist READ

A variable name in the data was followed by an open bracket but the name is not an array or character variable.

148

Invalid character

Formatted READ

A character has been found in the current input stream which cannot syntactically be part of the entity being assembled.

149

Invalid Namelist input

Namelist READ

The first character of a record read by a Namelist READstatement was not a space.

150

Literal not terminated

List-Directed READ, Namelist READ

A literal constant in the input file was not terminated by a closing quote before the end of the file.

151

A variable name expected

Namelist READ

A list of array or array element values in the data contained too many values for the associated variable.

152

File does not exist

OPEN

An attempt has been made to open a file which does not exist with STATUS=OLD.

153

Input file ended

READ

All the data in the associated internal or external file has been read.

154

Wrong length record

READ, WRITE

The record length as defined by a FORMAT statement, or implied by an unformatted READ or WRITE, exceeds the defined maximum for the current input or output file.

155

Incompatible format descriptor

READ/WRITE with FORMAT

A format description was found to be incompatible with the corresponding item in the I-O list.

156

READ after WRITE

READ

An attempt has been made to read a record from a sequential file after a WRITE statement.

158

Record number out of range

Direct Access READ/WRITE, FIND

The record number in a direct-access I-O statement is not a positive value, or, when reading, is beyond the end of the file.

159

No format descriptor for data item

READ/WRITE with FORMAT

No corresponding format code exists in a FORMAT statement for an item in the I-O list of a READ or WRITE statement.

160

READ after Endfile

READ

An attempt has been made to read a record from a sequential file which is positioned at ENDFILE.

161

WRITE operation failed

WRITE

After repeated retries WRITE(2) could not successfully complete an output operation. This may occur if a signal to be caught interrupts output to a slow device

162

No WRITE permission

WRITE

An attempt has been made to write to a file which is defined for input only.

163

Unit not defined or connected

FIND

The unit specified by a FIND statement is not open. The unit should first be defined by a DEFINE FILE statement, or should be connected by some other means.

164

Invalid channel number

Any I-O Operation

The unit specified in an I/O statement is a negative value.

166

Unit already connected

DEFINE FILE

The unit specified in a DEFINE FILE statement is already open.

167

Unit already defined

DEFINE FILE, OPEN

The same unit has already been specified by a previous DEFINE FILE statement.

168

File already exists

OPEN

An attempt has been made to OPEN an existing file with STATUS=NEW.

169

Output file capacity exceeded

READ, WRITE

An attempt has been made to write to an internal or external file beyond its maximum capacity.

171

Invalid operation on file

Positional, READ, WRITE

An I/O request was not consistent with the file definition; for example, attempting a BACKSPACE on a unit that is connected to the screen.

172

various

READ, WRITE

An unexpected error was returned by READ2 - the error text will be the NT* message associated with the failure.

173

various

READ, WRITE

An unexpected error was returned by WRITE- the error text will be the LINUX* message associated with the failure.

174

various

READ, WRITE

An unexpected error was returned by LSEEK - the error text will be the LINUX message associated with the failure.

175

various

OPEN, CLOSE

An unexpected error was returned by UNLINK - the error text will be the LINUX message associated with the failure.

176

various

OPEN, CLOSE

An unexpected error was returned by CLOSE- the error text will be the LINUX message associated with the failure.

177

various

OPEN

An unexpected error was returned by CREAT - the error text will be the LINUX message associated with the failure.

178

various

OPEN

An unexpected error was returned by OPEN- the error text will be the LINUX message associated with the failure.

181

Substring out of range

Namelist READ

A character substring reference in the input data lay beyond the bounds of the character variable.

182

Invalid variable name

Namelist READ

A name in the data was not a valid variable name.

185

Too many values

Namelist READ specified

A repetition factor (of the form r*c) exceeded the number of elements remaining unassigned in either an array or array element reference.

186

Not enough subscripts

Namelist READ specified

An array element reference contained fewer subscripts than are associated with the array.

187

Too many subscripts

Namelist READ specified

An array element reference contained more subscripts than are associated with the array.

188

Value out of range

Formatted READ

During numeric conversion from character to binary form a value in the input record was outside the range associated with the corresponding I-O item.

190

File not suitable

OPEN

A file which can only support sequential file operations has been opened for direct access I-O.

191

Workspace exhausted

OPEN

Workspace for internal tables has been exhausted.

192

Record too long

READ

The length of the current record is greater than that permitted for the file as defined by the RECL= specifier in the OPEN statement

193

Not connected for unformatted I-O

Unformatted READ/WRITE

An attempt has been made to access a formatted file with an unformatted I-O statement.

194

Not connected for formatted
I-O

Formatted READ/WRITE

An attempt has been made to access an unformatted file with a formatted I-O statement.

195

Backspace not permitted

BACKSPACE

An attempt was made to BACKSPACE a file which contains records written by a list-directed output statement; this is prohibited by the ANSI Standard.

199

Field too large

List-Directed READ, Namelist READ

An item in the input stream was found to be more than 1024 characters long (this does not apply to literal constants).

203

POSITION conflict

OPEN

When a file is to be connected to a unit to which it is already connected, then only the BLANK, DELIM, ERR, IOSTAT and PAD specifiers may be redefined. An attempt has been made to redefine the POSITION specifier.

204

ACTION conflict

OPEN

When a file is to be connected to a unit to which it is already connected, then only the BLANK, DELIM, ERR, IOSTAT and PAD specifiers may be redefined. An attempt has been made to redefine the ACTION specifier.

205

No read permission

READ

An attempt has been made to READfrom a unit which was OPENed with ACTION="WRITE".

206

Zero stride invalid

Namelist READ

An array subsection reference cannot have a stride of zero.

208

Incorrect array triplet syntax

Namelist READ

An array subsection triplet has been input incorrectly.

209

Name not a derived type

Namelist READ

A name in the data which is not a derived type has been followed by a `%'.

210

Invalid component name

Namelist READ

A derived type reference has not been followed by an `='.

211

Component name expected

Namelist READ

A `%' must be followed by a component name in a derived type reference.

212

Name not in derived type

Namelist READ

A component is not in this derived type.

213

Only one component may be array-valued

Namelist READ

In a derived-type reference, only the derived type or one of its components may be an array or an array subsection.

214

Object not allocated

READ/WRITE

An item has been used which is either an unallocated allocatable array or a pointer which has been disassociated.

Little-Big Endian Conversion Errors

Error

Message

Where Occurring

Description

215

Conversion of derived data types is disabled

READ/WRITE

Conversion of derived data types is disabled if READ/WRITE statement refers to derived data type. (This error is fatal.)

Other Errors Reported by I/O statements

Errors 101-107 arise from faults in run-time formats:

Error

Message

101

Syntax error in format

102

Format is incomplete

103

A positive value is required here

104

Minimum number of digits exceeds width

105

Number of decimal places exceeds width

106

Format integer constants > 32767 are not supported

107

Invalid H edit descriptor

Notes

I/O Error nnn :

Text of message

In Procedure :

Procedure name

At Line :

Lline number

Statement :

I/O statement type

Unit :

Unit identifier or Internal File

Connected To :

Ffile name

Form :

Formatted, Unformatted or Print

Access :

Sequential or Direct

Nextrec :

Record number

Records Read :

Number of records input

Records Written :

Number of records output

Current I/O Buffer :

Snapshot of the current record with a pointer to the current position

   Note
Only as much information as is available or pertinent will be displayed.