next up previous 204
Next: Reporting and handling errors
Up: FIO/RIO FORTRAN file I/O routines
Previous: Access Mode, Format and Record Size of Files


INCLUDE files

The include file FIO_PAR defines symbolic names for various constants which may be required by tasks. The most useful constants are FIO__SZMOD, which is used to specify the length of the access mode string in calls to FIO_OPEN and RIO_OPEN, and FIO__SZFNM, which is the maximum allowed length of a filename in FIO/RIO.

If you need to test for explicit status values returned from FIO/RIO subroutines, include the statement:

INCLUDE 'FIO_ERR'

in the program. The return status can then be tested. For example:

      IF( STATUS .EQ. FIO__ERROR ) ...

However, there are problems to do with portability when testing return status values. These are dealt with in the next section.


next up previous 204
Next: Reporting and handling errors
Up: FIO/RIO FORTRAN file I/O routines
Previous: Access Mode, Format and Record Size of Files

FIO/RIO FORTRAN file I/O routines
Starlink User Note 143
P M Allan
A J Chipperfield
20 July 2001
E-mail:starlink@jiscmail.ac.uk

Copyright © 2000 Council for the Central Laboratory of the Research Councils