Wikis - Page

Creating an index file greater than 2GB

0 Likes

Starting with the availability of file version 3 for release version 6.6, RM/COBOL has supported the creation of index files greater than 2 GB. With the release of version 7.5 and file version 4, the default file index file version supports these large files.

There are several steps to adding support for large files for existing index files:

1. The first step is to make sure that the Operating System supports the creation of files greater than 2 GB. This may involve changing the file system, a kernel setting, or even the ulimit associated with a user account shell. Your systems support person will need to accomplish this, as each Operating System may do it differently.

2. Next, edit/create the default configuration file (runcobol.cfg) located in the RM/COBOL installation directory. Add the following two records to that file:

----------------------

RUN-FILES-ATTR LARGE-FILE-LOCK-LIMIT=512
RUN-INDEX-FILES USE-LARGE-FILE-LOCK-LIMIT=YES

----------------------

**The default LARGE-FILE-LOCK-LIMIT 512 GB.

3. Run rmdefinx on existing index files that are at the 2 GB limit. The above settings will affect only the lock limit placed into the Key Information Block (KIB) for new file version 3 or 4 indexed files created by the runtime system. Existing indexed files always use the lock limit stored when the file was created. In addition, the file version should be changed to the highest setting your runtime version supports. Only file version 3 and 4 support large files.

Even if the file is at the highest file version that setting your runtime version supports, you must re-enter the file version setting in order to get the prompt to change the File Lock Limit.

See the description of the rmdefinx utility in the RM/COBOL User's Guide for more information.

Comment List
Related
Recommended