FORTRAN-80

Input/Output

If the file is being connected for formatted 110, 'reclen' is the number of characters. If the file is being connected for unformatted 110, the length is measured in bytes.

If the file already exists, the length specified must be that used when the file was created. In the case of a new file, the processor creates a file with the specified length for each record.

The REeL specifier must be included in the OPEN statement when a file is being connected for direct access.

Example:

OPEN (3, FILE='CARDS',STATUS='NEW',ACCESS='DIREcr,

&FORM = 'FORMATTED',RECL=80)

6.2.1.9 Blank Specifier

The format of the blank specifier is

BLANK = blnk

where 'blnk' is one of the character constants 'NULL' or 'ZERO'. If the BLANK specifier is omitted, the default value is 'NULL'.

If 'NULL' is specified, all blanks in numeric formatted input fields are ignored, ex- cept that a field of all blanks has the value zero. If 'ZERO' is specified, all blanks ex- cept leading blanks have the value zero.

The specifier is permitted only for files being connected for formatted input/output.

Example:

OPEN (UNIT=3, FILE='TOTALS',STATUS='NEW',

&FORM='FORMATTED',BLANK='ZERO')

6-7

Page 67
Image 67
Intel fortran-80 Blank Specifier, Open 3, FILE=CARDS,STATUS=NEW,ACCESS=DIREcr, Form = FORMATTED,RECL=80, Blank = blnk