FLUSH statement
The FLUSH statement can be used to flush one or all files.
- FILE
- Specifies the name of the output file.
The FLUSH statement forces the immediate writing of buffer contents associated with an open stream output file (or with all open stream output files if * is specified). This normally happens when the file is closed or when the program ends, but the FLUSH statement ensures that the buffers are written before any other processing occurs.
The FLUSH statement has no effect on record output files.
