OpenTP1 Version 7 Operation

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

tambkup (Back up a TAM file)

Format

scdhold [-d][-o] {TAM-file-name file-name|-s TAM-file-name}

Function

The tambkup command backs up the contents of a specified TAM file into a specified file or standard output.

The contents backed up from the TAM file can be restored with the tamrstr command.

The tambkup command also outputs the specified TAM file record to the specified file in the form of a TAM data file.

Options

-d

Creates a TAM data file from effective records in a TAM file. The TAM data file is to store data sorted in ascending order on the basis of a key value.

The tambkup command with its -d option specified must be executed when online operation terminates normally or after executing the tamhold and tamrm commands.

An error occurs if there is no effective record in the TAM file.

An error also occurs if broken records in the TAM file are detected.

-o

Backs up a TAM file in online mode.

This option is valid only when the TAM file is in the online mode.

If the option is not specified, the TAM file is to be backed up in the offline mode. The offline mode backup procedure is as follows:

  1. Execute the tamhold command to logically shut down the TAM table.
  2. Execute the tamrm command to remove the logically shutdown TAM table from the online system.
  3. Execute the tambkup command with its -o option not specified to backup the TAM file.

-s

This option must be specified to output the backup to the standard output.

The -d and -o options are mutually exclusive.

Command arguments

TAM-file-name~<path name>

Specifies the name of the backup source TAM file, expressed as the full path name.

file-name~<path name>

Specifies the name of the backup destination file.

Specifies the name of the TAM data file when the -d option is specified.

This command argument cannot be specified with the -s option.

Notes