Execution errors and IOSTAT values

All execution error messages consist of a message in English. These messages are listed below. Execution errors corresponding to input/output statements can be trapped by means of the ERR= and/or IOSTAT= keyword specifiers used with the input/output statements. The value returned by IOSTAT in this case is n where n is the execution error number that appears in the table below. Users are advised to trap specific errors by means of IOSTAT rather than to continue execution regardless of the error that has been detected by the input/output system.

Notes:

  • The IOSTAT value -1 indicates that an end-of-file condition has occurred.

  • The positive values chosen for IOSTAT in this implementation of Fortran 95 will, in all probability, differ from those chosen in any other implementation for the same error conditions.

 

Error No.

Message

0

No error

1

Floating point arithmetic overflow

2

Integer arithmetic overflow

3

Argument to CHAR outside range 0 - 255

4

Character argument/function name of wrong length

5

Attempt to execute invalid assigned GOTO

6

Inconsistent call to routine

7

DO-loop has zero increment

8

User-specified range check error

9

Might be array bound error or corrupt program - recompile with /CHECK

10

Lower substring expression > upper

11

Array subscript(s) out-of-bounds

12

Lower substring expression out-of-range

13

Illegal character assignment

14

Attempt to alter an actual argument that is a constant, an expression, an INTENT(IN) argument, or a DO variable

15

Attempt to access undefined argument to routine

16

Lower array bound > upper bound

17

Upper substring expression out-of-range

18

This routine has been entered recursively (-ANSI mode)

19

Actual array argument size smaller than dummy array argument size

20

Argument to SINH/COSH out of range

21

Zero raised to negative or zero power

22

Floating point division by zero

23

Floating point arithmetic underflow

24

This source has not been compiled with /PROFILE

25

Argument to EXP out-of-range

26

Argument to ASIN/ACOS out-of-range

27

Invalid floating point number

28

Negative argument to square root

29

Call to missing routine - %1

30

Storage heap is corrupt

31

Floating point number too big for integer conversion

32

Second argument to MOD is zero

33

Both arguments to ATAN2/DATAN2 zero

34

Negative or zero argument to logarithm routine

35

Illegal argument to TAN routine

36

Negative number raised to non-integer power

37

Integer divide overflow

38

Illegal character assignment (R.H.S. overlaps L.H.S.)

39

Illegal window

40

No more windows available

41

Maximum number of breakpoints already set

42

This line number is not available as a breakpoint

43

Invalid command

44

Unable to open file

45

String not found

46

Routine not found or not compiled in check mode

47

Invalid expression

48

No more room for debugger information

49

Attempt to call a block data subprogram

50

Undefined input/output error

51

Format/data mismatch

52

Invalid character in field

53

Overflow detected by input/output routine (data out-of-range)

54

m > w in Iw.m run-time format

55

m > w in Ow.m, Zw.m or Bw.m run-time format

56

Unit has been closed by means other than a CLOSE statement

57

Attempt to read past end-of-file

58

Corrupt listing file

59

There is no repeatable edit descriptor in this format

60

Invalid external unit identifier

61

Invalid scale factor

62

Invalid or missing repeat count

63

Preconnected file comprises formatted records

64

Preconnected file comprises unformatted records

65

This command is not permitted from this window

66

File not in correct format

67

Character buffer too small

68

Field width exceeds direct access record size

69

Invalid record length (see documentation)

70

Logical input field is blank

71

H or apostrophe editing not allowed for input

72

Repeated formats nested too deep (>10)

73

Missing opening parenthesis in run-time format

74

Invalid editing descriptor

75

A zero or signed repeat count or field width is not allowed

76

Repeat count not allowed

77

Digit(s) expected

78

Decimal point missing

79

Missing separator

80

Invalid ACCESS specifier

81

Invalid combination of specifiers

82

ANSI - RECL is an invalid specifier

83

Label does not reference a format statement

84

Only BLANK may be changed for a file that exists for a given program

85

Repeated character constant must not extend past the end of a line

86

Character input/output list item is part of internal file

87

ENCODE/DECODE character count zero or negative

88

Internal file must not be constant or expression

89

Attempt to write past end of internal file

90

File access and properties are incompatible

91

Missing ) from complex number

92

Invalid CLOSE statement

93

Missing ( from complex number

94

Unit has neither been OPENed nor preconnected

95

Invalid direct access record number

96

Illegal operation (BACKSPACE/ENDFILE/REWIND) on a direct access file

97

Direct access record length too big

98

Invalid FILETYPE specifier

99

A function which performs I/O must not be referenced in a WRITE or PRINT statement

100

List-directed input/output is not allowed with direct access

101

Direct access is not allowed with an internal file

102

A formatted, direct access statement must only transfer one record

103

Missing FILE specifier

104

File positioned at end-of-file

105

Invalid record length for existing direct access file

106

A valid record length must be specified if access is direct

107

STATUS=NEW must not be used with an existing file

108

Direct access record length mismatch

109

Brackets nested too deeply (>20)

110

Unformatted record is corrupt

111

Coprocessor invalid operation

112

Reference to undefined variable, array element or function result (/UNDEF)

113

Insufficient allocatable storage

114

Emulator failure

115

Reference to undefined object (/UNDEF)

116

Too many files open

117

Disk full

118

ANSI - exponent out-of-range (use Ew.dEe or Gw.dEe edit descriptors)

119

Down to page reserve

120

Weitek coprocessor not available (use /WEITEK DBOS option)

121

Too many registered traps

122

No high resolution graphics mode is available

123

Too many labels in debug macro file

124

This command is only allowed in a macro

125

A file of this name already exists

126

ANSI - invalid STATUS specifier

127

ANSI - invalid edit descriptor

128

File does not exist

129

Invalid attempt to use peripheral

130

Unformatted record too big

131

ANSI - octal/hexadecimal/binary input not permitted

132

Device type not known on this installation

133

Expression required

134

File already in use

135

Sign not at start of field in business editing descriptor

136

Business editing not allowed for input

137

Illegal operation after a BACKSPACE

138

Attempt to write to a 'READONLY' file or inconsistent file access

139

You may not write to a file that is 'READONLY'

140

You cannot OPEN a directory

141

ANSI - invalid $ in format descriptor

142

$ editing not allowed for input

143

Incorrectly positioned $ character in format descriptor

144

Illegal name in OPEN/CLOSE/INQUIRE statement

145

ANSI - the Aw edit descriptor must be used with an item of type CHARACTER

146

File path not found

147

Macro label not found

148

Invalid hash table

149

Value returned by RECL= or NEXTREC= will cause overflow (use INTEGER*4 instead of INTEGER*2)

150

Count for ENCODE/DECODE must be in the range 1 to 32767

151

Invalid FORM specifier

152

Invalid STATUS specifier

153

Invalid BLANK specifier

154

Unpaired brackets

155

Error detected by user-specified device driver

156

Unexpected error in Fortran I/O system

157

Do-loop will never be executed (/DOCHECK)

158

Unformatted record is too short for input list

159

Trailing sign or "CR" not at end of field in business editing descriptor

160

Multiple leading sign before "$" in business editing descriptor

161

"*" must precede "$" or "Z" in business editing descriptor

162

"$" in wrong position in business editing descriptor

163

"Z" after decimal point in business editing descriptor

164

Decimal point appears more than once in business editing descriptor

165

Comma at start of field or after decimal point in business editing descriptor

166

Invalid character found in business editing descriptor

167

DO-loop will never be executed (/DOCHECK)

168

Unanticipated DOS error encountered in I/O system

169

Underflow detected by input/output routine (data out-of-range)

170

Equals missing

171

Absolute value of complex argument out of range

172

The left hand side of a LET must be a variable or array element

173

You may not delete a file that is 'READONLY'

174

Array has wrong number of dimensions

175

Array subscript(s) out-of-bounds

176

Unpaired quotes

177

Name longer than 32 characters

178

Variable is not an array

179

Variable is an array

180

Unknown variable

181

Block IF unterminated on leaving a macro

182

Error in the structure of WHILE-ENDWHILE block in a macro

183

Error in the structure of block IF in a macro

184

Display full

185

Routine not found

186

Unknown vector

187

Parameters may not be altered

188

Too many points to be plotted

189

ANSI - invalid FORM specifier

190

Attempt to read from a file opened with FORM='PRINTER'

191

Key name expected

192

Substring required, not an array index

193

Pascal run time error

194

Reference through NULL pointer

195

Reference through invalid pointer

196

Expected ON or OFF

197

Requested a negative amount of memory

198

Not enough storage heap to open window

199

Run out of heap space

200

Buffer overflow in namelist-directed I/O

201

End-of-file in namelist input group

202

Syntax error encountered while reading namelist group

203

Too many values supplied for input array in namelist-directed input/output

204

Invalid identifier in namelist input group

205

Incorrect number of subscripts in namelist input

206

Subscript or substring out-of-range in namelist input

207

Invalid SHARE specifier

208

You may not read from a file that is write-only

209

Invalid ACTION specifier

210

Invalid POSITION specifier

211

Invalid DELIM specifier

212

Invalid PAD specifier

213

Invalid ADVANCE specifier

214

You cannot use an ADVANCE specifier here

215

Input record too short

216

Invalid argument

217

Divide by zero

218

Fortran unallocated runtime message

219

Fortran unallocated runtime message

220

Fortran unallocated runtime message

221

+, - or digit expected

222

1st parameter is undefined

223

1st string is undefined

224

2nd parameter is undefined

225

2nd string is null

226

2nd string is undefined

227

Assign not allowed on an open file

228

Bad file control block

229

DA access not allowed for text files

230

DA access not allowed to terminal or string

231

DA not allowed for text files

232

Digit expected

233

DOS pathname unobtainable

234

End of file

235

EOLN used at EOF

236

Failed to position to end of file

237

Failed to position to record

238

File cannot be closed

239

File cannot be emptied

240

File cannot be opened

241

File cannot be positioned

242

File cannot be reopened

243

File cannot be rewound

244

File has not been opened

245

File is not open for reading

246

File is not open for writing

247

File is open for reading

248

File is open for writing

249

File is readonly

250

File OUTPUT may not be reset

251

File size is not a multiple of record size

252

Heap slot has already been disposed

253

Heap slot has been corrupted

254

Heap slot is of the wrong size

255

Invalid record number

256

No EOLN before EOF

257

No storage available

258

Not enough room for insertion

259

Not enough room for result

260

Number too large

261

Pascal system error

262

Pointer is NIL

263

Pointer is undefined

264

Range error

265

Set range error

266

String files not allowed

267

String is null

268

String is undefined

269

This operation only allowed for DA files

270

Too many temporary files

271

Undefined Boolean

272

while reading from file

273

while writing to file

274

Reference through invalid C pointer

275

Reference through NULL pointer %F

276

Reference through un-initialised pointer %F

277

Attempt to overwrite constant data

278

Corrupt storage availability index

279

Attempt to call Windows application routine when not in windows

280

Run out of Windows selectors

281

String is not terminated %F

282

Invalid long jump %F

283

Search has spilled outside storage area %F

284

Negative count not permitted %F

285

Concatenation would spill outside storage area %F

286

Read has spilled outside storage area %F

287

Conversion has spilled outside storage area

288

Reference through dangling C pointer %F

289

Reference to a portion of the format buffer which has been overwritten %F

290

Essential arguments missing %F

291

Not enough arguments to satisfy format %F

292

Pointer does not point at a function

293

Pointer references code - not data %F

294

Storage block is not big enough for this operation %F

295

Impossible number of bytes in copy operation %F

296

Invalid FILE structure

297

Invalid double passed to printf

298

Invalid long double passed to printf

299

Reference to missing C argument

300

Corrupt destructor chain

301

Attempt to create invalid SAI entry

302

Attempt to 'free' memory allocated by 'new' - use 'delete'

303

Attempt to 'delete' memory not allocated by 'new'

304

This operation is not allowed on a windows stream

305

Input/Output failure in the C library.

306

Read operation has failed

307

Write operation has failed

308

Illegal attempt to close standard streams (stdin, stdout or stderr)

309

Cannot read from a stream after writing without an intervening seek or fflush

310

Cannot write to a stream after reading without an intervening seek.

311

Unable to find length information to delete whole array with destructors

312

Attempt to call a pure virtual function implicitly

313

Illegal attempt to write to a read only file.

314

Illegal attempt to read from a write only file.

315

Illegal attempt to use low level IO functions on a file opened by ANSI C IO functions

316

Object contains corrupt virtual function table pointer

317

Pointer to member function has not been defined

318

C library floating point error handler unexpectedly called. Contact your dealer!

319

Attempt to exit a function without a return value

320

Attempt to create overlapping SAI entry

321

Invalid size must be > 0

322

#define CREATE_CONSTRUCTOR

323

#define SEEKMODE_SEEKOFFSET

324

Invalid file handle

325

Null buffer pointer or zero buffer size

326

Automatic allocation of buffer failure

327

Attempt to use an output stream for input - invalid mode

328

Fail to open file

329

Invalid index

330

Available space is full

331

#define STDIOSTRM_CONSTRUCTOR

332

Invalid file mode - ios::in, ios::out or ios::app

333

Invalid seek_mode - ios::beg, ios::end or ios::cur

334

Attempt to write beyond buffer supplied to istream object

335

#define CREATE_COUT

336

#define CREATE_CIN

337

Object already buffered or invalid buffer pointer or size

338

#define STRSTREAMBUF_ALLOCATION

339

Null pointer supplied to stream function

340

Object is not a streambuf class

341

Invalid window handle

342

Reference to position beyond buffer

343

Invalid stream pointer (FILE*=NULL)

344

JUMP@ in incompatible with the .NET framework

345 - 357

streams spare

358

Special failed number type 2

359

Special failed number type 1

360

Invalid disk drive number (0=A, 1=B, etc..)

361

Invalid file mode

362

Invalid argument

363

Invalid clearwin window's handle

364

Invalid dialog handle

365

Unable to dynamically allocate common block

366

streams spare

367

streams spare

368

streams spare

369

Function unimplemented in /CLR mode

370

get_real_mode_memory_region can only be used on real mode memory (ie 0 to 0x10000000)

371

Windows program could not be started (is LAUNCHER running?)

372

Attempt to start Windows program outside Windows

373

No characters read by scanf

374

This operation requires a Pentium-class processor

375

Attempt to free part of a storage block

376

Attempt to delete unallocated storage

377

Attempt to free unallocated storage

378

Coprocessor stack is not empty (CHECKSTACK@)

379

Attempting to close a standard stream is illegal

380

Zero or negative array size not permitted

381

Fortran run-time error

382

Coprocessor stack overflow

383

Coprocessor stack underflow

384

Second argument to NEAREST is zero

385

Real and imaginary parts of the argument to complex LOG are both zero

386

The FROMPOS, LEN and TOPOS arguments of MVBITS must be nonnegative and not exceed BITSIZE(FROM)

387

FROMPOS+LEN and TOPOS+LEN must not exceed BITSIZE(FROM)

388

DIM out of range

389

Nonconformant arrays

390

Undefined pointer

391

Disassociated pointer

392

Corrupt pointer

393

Inconsistent call to FTN95 routine

394

ORDER array should have the same number of elements as SHAPE (RESHAPE)

395

ORDER array is not a permutation of (1,2,...,size(SHAPE)) (RESHAPE)

396

The result array size is different from the size of VECTOR (PACK)

397

The result array size is too small (PACK)

398

MASK is scalar with the value true, the size of VECTOR is less than the size of ARRAY (PACK)

399

MASK is scalar with the value true, the size of ARRAY is different from the size of RESULT (PACK)

400

SHAPE must be rank 1 (RESHAPE)

401

ORDER must be rank 1 (RESHAPE)

402

PAD must not be scalar (RESHAPE)

403

VECTOR has insufficient elements (UNPACK)

404

Result has insufficient elements

405

Reference to undefined character (/FULL_UNDEF)

406

Invalid call to random number seeder

407

DEALLOCATE failed

408

ALLOCATE was unable to obtain sufficient storage

409

Field width zero not allowed on input

410

A function called from within an I/O statement has itself performed I/O

411

This access of date facilities is not Millenium compatible

412

Preconnection unit number not in range 1-99

413

Can't parse preconnection string

414

Pathname is too long

415

Missing closing parenthesis in run-time format

416

Bad request for stack memory

417

Non-conformant array shapes for matrix multiplication (MATMUL)

418

MATMUL can accept, at most, one vector

419

Reference through unset Fortran POINTER

420

Reference through NULL Fortran POINTER

421

Reference through dangling Fortran POINTER

422

Attempt to DEALLOCATE invalid Fortran POINTER

423

Attempt to DEALLOCATE part of a storage block

424

Attempt to DEALLOCATE dangling Fortran POINTER

425

Integer out of range for conversion to/from unsigned

426

CHARACTER dummy argument defined to be larger than actual argument

427

Reference through missing OPTIONAL argument

428

Date out of range

429

Internal Error: Stack pointer corrupt

430

Internal Error: Floating-point stack not empty

431

Active DO-loop index altered

432

ALLOCATABLE object has already been ALLOCATEd

433

A function called from within an I/O statement has performed I/O on the same unit

434

An internal TempAlloc has not been TempFree'd

435

Stack alignment fault

436

Array intrinsic called with an unallocated array

437

NCOPIES does not match DIM in SPREAD function

438

Result of array intrinsic has not been allocated memory

439

Floating point overflow on exponentiation x**y

440

Integer overflow on exponentiation x**y

441

Invalid argument for OPENRW@/OPENR@/OPENW@/OPENF@

442

Invalid address passed to RETURN_STORAGE@

443

Negative argument to SQRT routine

444

Insufficient virtual stack (FTN95 /VSTACK )

445

Internal virtual stack failure

446

Negative or zero ALLOCATE

447

Positive width required when using E or G format descriptor

448

Value returned by INQUIRE POS=ivalue will cause overflow. Use higher KIND

449

Missing NEW_LINE at end of STREAM record

450

The given POS value does not match the start of a STREAM record

451

Memory corrupted before call to LEN_TRIM

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited