Enables and disables support for file pooling.
Description
In COBOL applications it is common practice to close and re-open files when entering procedures. This can cause unnecessary overhead and performance issues in FairCom RTG.
The filepool feature introduces support for file pooling to keep files open when the COBOL application requests to close them. This allows the file handle to be returned immediately when the COBOL application requests to re-open it.
The <filepool> global configuration keyword enables and disables support for file pooling and optionally Sets the size of the file pool with attribute <filepool size> where size is the maximum number of files to keep in the pool.
Accepted Values
Value |
Effect |
Synonyms |
---|---|---|
yes |
Enables file pooling to keep files open so the file handle can be returned immediately when the application requests to re-open it. |
y, true, on, 1 |
no |
|
n, false, off, 0 |
Attributes
Value |
Effect |
Synonyms |
size |
Optionally sets the maximum number of files to keep in the pool. |
|
A configuration keyword <inpool> defines if a file can be included in the file pool.
Consideratrions
Currently there is no way for other clients to detect that the file is physically open by the <filepool> or request that the file is physically closed and removed from the <filepool> list.
<filepool size> indicates the number of data files and it is recommended to keep it as low as possible.
See also: