Admin Production rocket
Current Publication

CBL_FLUSH_FILE

NetExpress Bookshelf Help V5.1 WrapPack 1
Rocket® Net Express™ (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.

CBL_FLUSH_FILE

Ensures all file buffers for a file are written to disk. This includes both run-time system buffers and operating system buffers.

Syntax:
call "CBL_FLUSH_FILE" using file-handle
Parameters:
Using call prototype (see Key) Picture (32-bit systems)
file-handle cblt-bytestream-handle pic x(4) comp-5
On Entry:
file-handle The file handle returned when the file was opened (by CBL_OPEN_FILE).
On Exit:
RETURN-CODE Indicates whether the routine was successful:
0 Success
-1 Buffers might not have been flushed
Other Two-byte file status code indicating the error
Comments:

On some operating systems it is not possible to flush the file buffers. In this case, the appropriate status code is returned.

The success of the call can be checked by examining RETURN-CODE.

See Also:

Related Topics