SAVE

Saves one or more accounts, or files, to tape.

Caution

Command Class

TCL-II command.

Syntax

SAVE SYSTEM {item-list} {options}

Syntax Elements

SYSTEM Identifies the System Dictionary (which defines all the accounts and system files on the database).

item-list is the names of accounts and/or system files to be saved (in the order in which they are to be saved, separated by spaces) or an asterisk to indicate that all accounts are to be saved.

item-list can be omitted if an item list is provided by an immediately preceding list generating command, or if the I option is used.

Options

A Dumps dummy ABS.

D Dumps data files (default - this option does not need be specified.).

F Lists file names as well as account names.

I Saves individual account for which you are subsequently prompted. I is overridden if item-list is supplied. I suppresses status line display.

K Kills output to tape. Used to generate statistics only. Valid only with S or Z.

O Override any DX or DY D/CODEs encountered.

P Prints the standard terminal output to the printer assigned to your process.

S Suppresses output to tape and generates file statistics in STATFILE.

T Inhibits writing of the tape label. If this is specified, the first ?  prompt is inhibited.

Z Creates file statistics in user-specified file. Z is overridden by S.

Restrictions

SYSMAN and SYSPROG accounts only. If run from SYSPROG, accounts with update/retrieval lock codes are not saved.

Multiple reel Multiple-Account-Saves cannot be restored on Reality Release 7.0 or earlier.

Synonym (Q-Pointer) and remote (R-Pointer) accounts are not saved. Only accounts defined as D-Pointers are saved.

Data saved using SAVE cannot be restored on pre-7.0 Reality systems. Use the OLD-SAVE command.

Comments

A SAVE tape comprises some or all of the following sections (depending on options) in the order:

Status Line Display

Unless you specify the I option, SAVE displays the following data on the status line if the terminal supports status line addressing.

Procedure

  1. Ensure that the tape is loaded and on-line, that the tape is NOT write-protected, and you are logged to the SYSMAN or SYSPROG accounts. You are prompted for any further tapes to be loaded, as required.
  2. Attach tape units using ASSIGN, or T-ATT, with the default channel.

    Note: The record size used with encrypted tape devices must be a multiple of 8.

  3. At the TCL prompt enter SAVE with the required options.

    If the I option is specified and an item-list is not supplied, the system prompts for an account-name (that is, the item-id of an account defined in SYSTEM).

    ITEM ID:

    Enter the account name.

  4. Depending on the options specified, the system displays a series of up to three prompts of the form ?. Information is prompted for in the following order:

    • Tape label.  An optional description, of up to 44 characters can be entered.
    • Name of file to hold file statistics (Z option only).

    When you have entered the appropriate information, the save continues. Then, on completion, the number of GFEs encountered is displayed and you are returned to TCL.

    Failure to write data to tape may result in an error message:

    Tape operation failed (after retries)
    
    Bad Tape - unable to continue.  Type "Q" to Quit

    Refer to the topic Error Messages for details on what to do.

  5. Enter T-REW to rewind the tape to the BOT and then use the VERIFY-SAVE command to check the integrity of the FILE-SAVE tape.

  6. Finally detach the tape unit(s), using CLEAR-ASSIGN or T-DET, to enable other database users to attach the tape unit(s).

Example

The following shows a typical SAVE procedure.

:ASSIGN =TAPE 1
[1021] DEVICE(S) TAPE 1 NOW ASSIGNED
       RECORD SIZE = 16000    DENSITY = 1600

:SAVE SYSTEM PERSNL ACCTS (DFZ
? TEST       (tape label)
? STAT1      (statistics file)
SYSTEM
 PERSNL
   .
   .
   .
[99]45 TAPE RECORDS WRITTEN
:

Go to top button