Maximum number of records; creating big files

Standard Sculptor keyed files hold a maximum of 16,777,215 records. On Microsoft Windows, and on UNIX and Linux platforms that support large files, it is now possible to create a keyed file up to 128Gb in size, with up to 134,217,727 records. A “big” file has a different format from a standard Sculptor keyed file, and requires more disk space for the same number of records. Both file types can be used in the same program. To create a big file, use the openfile command with the createbig option:

openfile file_id ... createbig

or create the file by using the -b flag with newkf:

newkf -b filename

The default mode in a ![o]file declaration can also be createbig:

!ofile file_id pathname createbig

Note however that use of the create or createbig option in the openfile command overrides the default mode specified by ![o]file.

The -s flag can also be used with newkf to specify a standard file. A standard file is the default if the file to be created does not already exist. If newkf is used to recreate an existing file and neither -s or -b is specified, the type of the new file is the same as the old.

Similarly, if ![o]file or openfile is used with create to recreate an existing file, the type of the new file is the same as that of the old. createbig can be used to force a big file in these circumstances; it is not possible to force a standard file.

By default, the kfcopy and reformat programs create the new file in the same format as the old file. The -b option is used with these utilities to force a big file, while the -s option forces a standard file. Examples:

kfcopy -b old_filename new_filename
reformat -s old_filename new_filename

The Sculptor File Manager acts as a front end for the newkf and reformat programs.


RELATED TOPICS

Keyed files

File Manager

Enabling large file support (UNIX)

Maximum file size