# FLUSH Force flush file updates

> Source: https://manual.pvxplus.com/directives/flush

## Format

**FLUSH** (*chan*\[,**ERR**=*stmtref*\])

***Where:***

|  |  |
| --- | --- |
| *chan* | Channel or logical file number of the file to be flushed to disk. |
| *stmtref* | Program line number or statement label to which to transfer control. |

## Description

Use the **FLUSH** directive to force the system to write all updates to a file to disk. This directive can be used to make sure that critical updates are fully written to the file specified.

Note:  
This directive is *not supported* on WindX-connected files.

*(The FLUSH directive was added in PxPlus v11.00.)*
