FILEHIST (Fortran only)

Derivation: FILE HISTory

FILEHIST specifies whether to allow the file definition of a file referred to by a ddname to be changed during run time. This option is intended for use with applications called by Fortran that reallocate Fortran's supplied DD names.

The default value for non-CICS applications is FILEHIST.

FILEHIST is ignored under CICS®

Read syntax diagramSkip visual syntax diagram
Syntax

   .-FIlehist---.   
>>-+-NOFIlehist-+----------------------------------------------><

FILEHIST
Causes the history of a file to be used in determining its existence. It checks to see if:
  • The file was ever internally opened (in which case, it exists)
  • The file was deleted by a CLOSE statement (in which case, it does not exist).
NOFILEHIST
Causes the history of a file to be disregarded in determining its existence. If you specify NOFILEHIST, you should consider:
  • If you change file definitions during runtime, the file is treated as if it were being opened for the first time.
  • Before the file definition can be changed, the existing file must be closed.
  • If you do not change file definitions during runtime, you must use STATUS='NEW' to reopen an empty file that has been closed with STATUS='KEEP', because the file does not appear to exist to Fortran.