Difference between revisions of "CLEAR FCACHE"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Close files that are logically closed but physically open | Close files that are logically closed but physically open | ||
− | |||
==Syntax== | ==Syntax== | ||
CLEAR FCACHE | CLEAR FCACHE | ||
− | |||
==See Also== | ==See Also== | ||
− | + | [[SET FCACHE]] | |
− | + | ||
==Description== | ==Description== | ||
Line 15: | Line 12: | ||
Normally this command should not be needed as files should be removed from the open file cache when an open request conflicts with the file's current status, for example, shared versus exclusive or update versus read-only. | Normally this command should not be needed as files should be removed from the open file cache when an open request conflicts with the file's current status, for example, shared versus exclusive or update versus read-only. | ||
− | |||
==Example== | ==Example== | ||
Line 23: | Line 19: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
[[Category:Performance and Optimization]] | [[Category:Performance and Optimization]] | ||
− |
Latest revision as of 10:22, 4 February 2013
Contents
Purpose
Close files that are logically closed but physically open
Syntax
CLEAR FCACHE
See Also
Description
The CLEAR FCACHE command physically closes any files that are logically closed but physically open due to the use of SET FCACHE ON. SET FCACHE ON speeds up program execution by leaving files physically open, thereby eliminating the involvement of the operating system when re-opening a file.
Normally this command should not be needed as files should be removed from the open file cache when an open request conflicts with the file's current status, for example, shared versus exclusive or update versus read-only.
Example
// Program to tidy up on exit of application clear fcache