The
FILEMAXSIZE option specifies the number of bytes used internally to store file offsets.
This also affects locking mechanisms: programs sharing the same file all need to use the same
FILEMAXSIZE settings to ensure semaphores and record locks are handled correctly, thereby avoiding potential file corruption in shared
files.
Syntax:
FILEMAXSIZE
=
{
4
}
{
8
}
Parameters:
- 4
- Limits file addressibility to 32-bit values, which is compatible with earlier versions of
Micro Focus COBOL products.
- 8
- Allows up to 64-bit values for file addressing on Windows platforms when accessing the NTFS file system, but changes the underlying
record locking mechanism. Therefore, if you are sharing very large files (greater than 1Gb in size) all programs accessing
the file must use
FILEMAXSIZE set to
8 to avoid possible corruption problems.
Comments:
Set FILEMAXSIZE to 4 in these scenarios.
All applications accessing a file must run with the File Handler configured with the same value for FILEMAXSIZE.
If you are requesting 64-bit file access to an unknown remote file system, ensure you set the remote_64bit_access tunable.
Only 32-bit (4GB) support is provided for Novell systems.