tcl.account-save

Verb: Access/TCL, Releases: AP and R83

Saves one account to magnetic media.

Syntax

account-save {account.name} {account.name...} {(options)} file-save tape label = {tape.label} account name = account.name

Description

saves individual account(s) to the currently attached peripheral storage device.

'account.name' indicates the name of the account to save. If more than one account is specified, each must be separated by a space. If not specified, the system prompts for the account name. On AP, the accounts to save can be specified in a select list.

'tape.label' is an optional 48-character character string which is written into the tape label area at the beginning of each 'reel' of the save.

Unless the 'u' option is specified, the system does a complete account-save. However, 'account-save' does not save a file with 'dx' in attribute 1 of its file-defining item. Although 'account-save' does save a file with 'dy' in attribute 1 of its file-defining item, none of the items in the file are saved.

In order for the 'incremental' account save to work, the system marks any item that is changed. This mark is normally cleared by a complete file-save; however, when using 'account-save', the marks indicating changed items are not cleared.

If a file has a 'dx' or 'dy' code and an item in it is updated, that item is not marked as changed when it is filed; therefore, even if the 'x' or 'y' is removed before the 'account-save' is run, that item is not saved by an 'incremental' account save.

The 'account-save' processor locks groups as it saves them. While the group is locked, no process may access any item in that group. Locking groups prevents spurious Group Format Error messages that would occur if another process changed an item while it was being saved. Up to four groups may be locked at one time. These groups are the ones containing: the mds dictionary pointer, the md pointer, the file dictionary pointer, and the group for the data currently being saved.

If the 'save' is being done to Streaming Cartridge Tape (SCT), an explicit end-of-data sequence must be written since SCT cannot back up. Use either 't-weof' from TCL or the FlashBASIC or Pick/BASIC 'weof' statement to write the second eod needed to indicate the end-of-file. Otherwise, 'account-restore' or 'sel-restore' fails to see the end of the tape.

'account-save' is a Pick/BASIC program which issues the 'save' command with the 'f', 't', 'v' and 'i' options. Any options available to the 'save' command may be added to the command line.

Example

account-save
file-save tape label = Thursday
account name = dm
1 35 > dm
1 36 > dm > newac
1 37 > dm > newac > newac
...

The process displays the files being saved in the following form:

Reel#, File#, > , account.name, > , dict.name, > , data.name

In all multi-reel operations, if the save detects end of media before
completing the save, it prompts with the message:

Load volume #n and type 'C'
label 08:00:00 16 Jan 1997 DATA ... #_
When the next 'reel' is inserted or mounted, 'c' continues
the process, or 'q' will stop it and return control to TCL.

The system does not check to determine if a different volume was inserted or
mounted.

See Also

Command Name Type Description
tcl.save Verb: Access Invokes backup process.
tcl.account-restore Verb: Access Restores one account.
tcl.sel-restore Verb: Access Restores item(s) from save media.
tcl.file-save Verb: Access System backup process.
tcl.admin.files Menu Menu for saves and restores.
tcl.check-dx Verb: Access Checks entire file system for 'dx', 'dy' or 'dl' files.
tcl.create-file Verb: Access Creates a new file.
tcl.file-save_rp Verb: Access System backup process.
incremental.save Definition Saves items changed since last save.
dummy.save Definition Validates integrity of save media.
tcl.check-account Verb: Access Performs dummy save.
files Definition Description of Pick file organization.
tape.label Definition Description of Pick tape labels.
file.defining.items Definition File-defining item overview.
file.control.block Definition Description of file control block.
deleting.items Definition see 'save'.
tcl.tlog-restore Verb: Access Restores the transaction log records.
tcl.check-files Verb: Access Performs 'dummy' account-save.
group.format.error Definition
incremental.restore Definition Restores items from last incremental save tape.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.