FLUSH
8.2
The FLUSH instruction updates the directory information for a file opened in SHARENF mode. In addition, this instruction flushes files opened in SHARE mode if automatic flushing has been disabled. The instruction uses one of the following formats:
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
filelist
Required. A list of open FILE, IFILE, and/or AFILE definitions whose directory information or data is written to disk.
Flags Affected: NONE
Note the following:
The number of files in {filelist} is not limited.
If a file in {filelist} is closed, no instruction is performed against that file.
The current file position remains unchanged.
For IFILE and AFILE declarations, both the data and index files are updated.
Files opened in SHARE mode automatically flush data as the file is extended. This flushing may be disabled by the PLB_SHAREFLUSH runtime keyword.
See Also: Example Code, Disk I/O Instructions
![]() |