Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Fortran Compiler for HP-UX: HP Fortran Programmer's Reference > Appendix A I/O runtime error messages

Runtime I/O errors

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

The error information listed in this section includes the codes returned by IOSTAT=, plus the following:

  • The message that the runtime system would send to standard error if you did not include the IOSTAT= specifier.

  • A diagnosis of the conditions that might have resulted in the error.

  • Actions that the programmer can take to correct the error.

Table A-1 Runtime I/O errors

Error no.Error messageDescriptionAction
900ERROR IN FORMATFORMAT statement syntax contains an error.See the “I/O and file handling” chapter for the syntax of the format specification and edit descriptors.
901NEGATIVE UNIT NUMBER SPECIFIEDUnit number was not greater than or equal to zero. Use a nonnegative unit number.
902FORMATTED I/O ATTEMPTED ON UNFORMATTED FILEFormatted I/O was attempted on a file opened for unformatted
I/O.
Open the file for formatted I/O or perform unformatted I/O on this file.
903UNFORMATTED I/O ATTEMPTED ON FORMATTED FILEUnformatted I/O was attempted on a file opened for formatted I/O.Open the file for unformatted I/O or perform formatted I/O on this file.
904DIRECT I/O ATTEMPTED ON SEQUENTIAL FILEDirect operation attempted on sequential file, direct operation attempted on opened file connected to a terminal.Use sequential operations on this file, open file for direct access, or do not do direct I/O on a file connected to a terminal.
905ERROR IN LIST-DIRECTED READ OF LOGICAL DATAFound repeat value, but no asterisk. First character after optional decimal point was not T or F.Change input data to correspond to syntax expected by list-directed input of logicals, or use input statement that corresponds to syntax of input data.
907ERROR IN LIST-DIRECTED READ OF CHARACTER DATAFound repeat value, but no asterisk. Characters not delimited by quotation marks.Change input data to correspond to syntax expected by list-directed input of characters, or use input statement that corresponds to syntax of input data.
908COULD NOT OPEN FILE SPECIFIEDTried to open a file that the system would not allow for one of the following reasons: access to the file was denied by the file system due to access restriction; the named file does not exist; or the type of access request is impossible.Correct the pathname to open the intended file.
909SEQUENTIAL I/O ATTEMPTED ON DIRECT ACCESS FILEAttempted a BACKSPACE, REWIND, or ENDFILE on a terminal or other device for which these operations are not defined.Do not use the BACKSPACE, REWIND, and ENDFILE statements.
910ACCESS PAST END OF RECORD ATTEMPTEDTried to do I/O on record of a file past beginning or end of record.Perform I/O operation within bounds of the record, or increase record length.
912ERROR IN LIST I/O READ OF COMPLEX DATAWhile reading complex data, one of the following problems has occurred: no left parenthesis and no repeat value; repeat value was found but no asterisk; or no closing right parenthesis.Change input data to correspond to syntax expected by list-directed input of complex numbers, or use input statement corresponding to syntax of input data.
913OUT OF FREE SPACELibrary cannot allocate an I/O block (from an OPEN statement), parse array (for formats assembled at run-time), file name string (from OPEN) characters from list-directed read, or file buffer. The program may be trying to overwrite a shared memory segment defined by another process.Allocate more free space in the heap area, open fewer files, use FORMAT statements in place of assembling formats at run time in character arrays, or reduce the maximum size of file records.
914ACCESS OF UNCONNECTED UNIT ATTEMPTEDUnit specified in I/O statement has not previously been connected to anything.Connect unit using the OPEN statement before attempting I/O on it, or perform I/O on another, already connected, unit.
915READ UNEXPECTED CHARACTERRead a character that is not admissible for the type of conversion being performed. Input value was too large for the type of the variable.Remove from input data any characters that are illegal in integers or real numbers.
916ERROR IN READ OF LOGICAL DATAAn illegal character was read when logical data was expected.Change input data to correspond to syntax expected when reading logical data or use input statement corresponding to syntax of input data.
917OPEN WITH NAMED SCRATCH FILE ATTEMPTEDExecuted OPEN statement with STATUS='SCRATCH', but also named the file. Scratch files must not be named.Either remove the FILE= specifier, or open the file with a status other than STATUS='SCRATCH'.
918OPEN OF EXISTING FILE WITH STATUS='NEW' ATTEMPTEDExecuted OPEN statement with STATUS='NEW', but file already exists.Either remove the STATUS= specifier from the OPEN statement, or use the STATUS='OLD'; STATUS='UNKNOWN'; or STATUS='REPLACE' specifier.
920OPEN OF FILE CONNECTED TO DIFFERENT UNIT ATTEMPTEDYou attempted to open a file that is already open with a different unit number.Close the file with the current unit number before attempting to open it with a different unit number.
921UNFORMATTED OPEN WITH BLANK SPECIFIER ATTEMPTEDOPEN statement specified FORM='UNFORMATTED' and BLANK=xx.Either use FORM='FORMATTED' or remove BLANK=xx.
922READ ON ILLEGAL RECORD ATTEMPTEDAttempted to read a record of a formatted or unformatted direct file that is beyond the current end-of-file.Read records that are within the bounds of the file.
923OPEN WITH ILLEGAL FORM SPECIFIER ATTEMPTEDFORM= specified string other than 'FORMATTED' or 'UNFORMATTED'.Use either 'FORMATTED' or 'UNFORMATTED' for the FORM= specifier in an OPEN statement.
924CLOSE OF SCRATCH FILE WITH STATUS='KEEP' ATTEMPTEDThe file specified in the CLOSE statement was previously opened with 'SCRATCH' specified in the STATUS= specifier.Open the file with a STATUS= , specifying a string other than 'SCRATCH' or do not specify STATUS='KEEP' in the CLOSE statement for this scratch file.
925OPEN WITH ILLEGAL STATUS SPECIFIER ATTEMPTEDSTATUS= specified string other than 'OLD' 'NEW' 'UNKNOWN' 'REPLACE' or 'SCRATCH'.Use 'OLD’, 'NEW', 'UNKNOWN', 'REPLACE' or 'SCRATCH' for the STATUS= specifier in OPEN statement.
926CLOSE WITH ILLEGAL STATUS SPECIFIER ATTEMPTEDSTATUS= specified string other than 'KEEP' or 'DELETE'.Use 'KEEP' or 'DELETE' for the STATUS= specifier in a CLOSE statement.
927OPEN WITH ILLEGAL ACCESS SPECIFIER ATTEMPTEDACCESS= specified string other than 'SEQUENTIAL' or 'DIRECT'.Use 'SEQUENTIAL' or 'DIRECT' for the ACCESS= specifier in an OPEN statement.
929OPEN OF DIRECT FILE WITH NO RECL SPECIFIER ATTEMPTEDOPEN statement has ACCESS='DIRECT', but no RECL= specifier.Add RECL= specifier to OPEN statement, or specify ACCESS=
'SEQUENTIAL'.
930OPEN WITH RECL LESS THAN 1 ATTEMPTEDRECL= specifier in OPEN statement was less than or equal to zero.Specify a positive number for RECL= specifier in OPEN statement.
931OPEN WITH ILLEGAL BLANK SPECIFIER ATTEMPTEDBLANK= specified string other than 'NULL' or 'ZERO'Use 'NULL' or 'ZERO' for BLANK= specifier in OPEN statement.
933END (OR BEGIN) OF FILE WITH NO END=x SPECIFIEREnd-of-file mark read by a READ statement with no END= specifier to indicate label to which to jump.Use the END= specifier to handle EOF, or check logic.
937ILLEGAL RECORD NUMBER SPECIFIEDA record number less than one was specified for direct I/O.Use record numbers greater than zero.
942ERROR IN LIST-DIRECTED READ - CHARACTER DATA READ FOR ASSIGNMENT TO NONCHARACTER VARIABLEA character string was read for a numerical or logical variable.Check input data and input variable type.
944RECORD TOO LONG IN DIRECT UNFORMATTED I/OOutput requested is too long for specified (or pre-existing) record length.Make the number of bytes output by WRITE less than or equal to the file record size.
945ERROR IN FORMATTED I/OMore bytes of I/O were requested than exist in the current record.Match the format to the data record.
953NO REPEATABLE EDIT DESCRIPTOR IN FORMAT STRINGNo format descriptor was found to match I/O list items.Add at least one repeatable edit descriptor to the format statement.
956FILE SYSTEM ERRORThe file system returned an error status during an I/O operation.See the associated file system error message.
957FORMAT DESCRIPTOR INCOMPATIBLE WITH NUMERIC ITEM IN I/O LISTA numeric item in the I/O list was matched with a nonnumeric edit descriptor.Match format descriptors to I/O list.
958FORMAT DESCRIPTOR INCOMPATIBLE WITH CHARACTER ITEM IN I/O LISTA character item in the I/O list was matched with an edit descriptor other than A or R.Match format descriptors to I/O list.
959FORMAT DESCRIPTOR INCOMPATIBLE WITH LOGICAL ITEM IN I/O LISTA logical item in the I/O list was matched with a edit descriptor other
than L.
Match format descriptors to I/O list.
973RECORD LENGTH DIFFERENT IN SUBSEQUENT OPENRecord length specified in second OPEN conflicted with the value as opened.Only BLANK=, DELIM=, and PAD= specifiers may be changed by a redundant OPEN.
974RECORD ACCESSED PAST END OF INTERNAL FILE RECORD (VARIABLE)An attempt was made to transfer more characters than internal file length.Match READ or WRITE statement with internal file size.
975ILLEGAL NEW FILE NUMBER REQUESTED IN FSET FUNCTIONThe file number requested to be set was not a legal file system file number.Check that the OPEN succeeded and the file number is correct.
976UNEXPECTED CHARACTER IN ”NAMELIST” READAn illegal character was found in namelist-directed input.Be sure input data conforms to the syntax rules for namelist-directed input, or remove illegal character from data.
977ILLEGAL SUBSCRIPT OR SUBSTRING IN ”NAMELIST” READAn invalid subscript or substring specifier was found in namelist-directed input. Possible causes include bad syntax, subscript/substring component out-of-bounds, wrong number of subscripts and substring on non-character variable.Check input data for syntax errors. Be sure subscript/substring specifiers are correct for data type. Specify only array elements within the bounds of the array being read.
978TOO MANY VALUES IN “NAMELIST" READToo many input values were found during a namelist-directed READ. This message will be generated by attempts to fill variables beyond their memory limits.Supply only as many values as the length of the array.
979VARIABLE NOT IN NAMELIST GROUPA variable name was encountered in the input stream that was not declared as part of the current namelist group.Read only the variables in this namelist.
980NAMELIST I/O ATTEMPTED ON UNFORMATTED FILEAn illegal namelist-directed I/O operation was attempted on an unformatted (binary) file.Specify FORM='FORMATTED' in OPEN statement, or use namelist-directed
I/O only on formatted files.
1010OPEN WITH ILLEGAL PAD SPECIFIER ATTEMPTEDAn attempt was made to open a file with an illegal value specified for the PAD= specifier.Specify either PAD='YES' or PAD='NO'.
1011OPEN WITH ILLEGAL POSITION SPECIFIER ATTEMPTEDAn attempt was made to open a file with an illegal value specified for the POSITION= specifier.Specify POSITION='ASIS', POSITION='REWIND' or POSITION='APPEND'.
1012OPEN WITH ILLEGAL DELIM SPECIFIER ATTEMPTEDAn attempt was made to open a file with an illegal value specified for the DELIM= specifier.Specify DELIM=
'APOSTROPHE', DELIM='QUOTE' or DELIM='NONE'.
1013OPEN WITH ILLEGAL ACTION SPECIFIER ATTEMPTEDAn attempt was made to open a file with an illegal value specified for the ACTION= specifier.Specify ACTION='READ', ACTION='WRITE' or ACTION='READWRITE'.
1014WRITE PAST 2GIG LIMIT FAILED, IS HUGE FOR ENTRYA Fortran I/O operation failed at exactly the 2 Gigabyte mark. This usually means that the filesystem which the I/O operation was associated with is not enabled for large files..If you discover that a filesystem you are performing an I/O operation on is not enabled for large files, please have your administrator enable large files via the fsadm (1M) command.
1015CONVERT SPECIFIER NOT ALLOWED WITH FORMATTED OPENThis error occurs only if the user tries to specify a binary conversion (via the CONVERT argument to open) on a FORMATTED file.A conversion will be silently ignored on a FORMATTED file if specified by an environment variable.
1016CONVERT SPECIFIER NOT ALLOWED WITH DIRECT OPENThis error occurs only if the user tries to specify a binary conversion (via the CONVERT argument to open) on a DIRECT file.A conversion will be silently ignored on a DIRECT file if specified by an environment variable.

 

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.