FLUSH
WTSupported in traditional Synergy on Windows
|
WNSupported in Synergy .NET on Windows
|
USupported on UNIX
|
VSupported on OpenVMS
|
FLUSH channel
Arguments
channel
The channel on which the file is open. (n)
Discussion
The FLUSH subroutine flushes all buffers associated with a channel.
Due to the inherent I/O buffering or caching on a system, a WRITE(S)/STORE/DELETE to a file may not immediately reach the physical disk file. System failure before the physical write, store, or delete can corrupt a file.
The FLUSH statement immediately updates a physical disk file. FLUSH improves reliability, but at the cost of performance. For ISAM files, both the index and data files are flushed.
On Windows and UNIX, for superior performance, we recommend setting system option #36 instead of using the FLUSH statement.
Use FLUSH only at the end of a transaction or any critical I/O processing. |
See also
System option #36