OpenTP1 Version 7 Operation

[Contents][Index][Back][Next]

tamcre (Initialize a TAM file)

Format

tamcre -r record-length -l key-area-length -k key-begin-position
       -m max-records-count [-t] [-u hash-entry-utilization-factor
       [-x] [-y]] [-s] [-d TAM-data-file-name] TAM-file-name

Function

The tamcre command creates a new TAM file based on specified options.

Options

-r record-length~<unsigned integer> ((1-1000000000))

Specifies the record length of the TAM file.

-l key-area-length~<unsigned integer> ((1-1000000000))

Specifies the key length.

-k key-begin-position~<unsigned integer> ((1-1000000000))

Specifies the length from the beginning of a record to the key begin position.

If the -s option is specified, 0 must be specified for this option.

-m max-records-count~<unsigned integer> ((1-1000000000))

Specifies the maximum number of records in the TAM table.

-t

Specifies that the TAM table is to be created in tree format.

If this option is omitted, the TAM table will be created in hash format. When this option is omitted, the -u option must be specified.

-u hash-entry-utilization-factor~<unsigned integer> ((1-100))

Specifies the utilization factor for the index to be used as the hash area.

When this option is omitted, the -t option must be specified.

-x

When there is any initial data to create the TAM file in the hash format, the synonym area is usually optimized to reduce the size of the TAM file and amount of shared memory.

The -x option specifies not to optimize the synonym area.

Specify this option when using the TAM file as:

-y

Changes the hash function to be used for a hash-format TAM file. Specify this option in the following cases:

-s

Specifies that the key area is to be deleted from the records.

When this option is specified, the record length of the TAM file becomes "specified record length - key area length".

-d TAM-data-file-name~<path name>

Specifies a name for the file in which the TAM table data is to be stored.

When this option is omitted, a physical file only is allocated.

Command arguments

TAM-file-name~<path name>

Specifies the name of the OpenTP1 file system in which the TAM table is to be stored.

If an existing TAM file name is specified, an error message (KFCA02836-E) is displayed. A new TAM file name must be specified.

Notes