Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

SEL-RESTORE


The jBASE sel-restore command enables users to restore all or specific records into a jBASE file from an ACCOUNT-SAVE or FILE-SAVE. The command prompts for the name of source account and file held on the media, unless the restore by file number option has been used, in which case the user is prompted for the number of the source file on the media.

 

COMMAND SYNTAX

sel-restore targetfilename {recordlist} {(options}

 

PROMPTS

Name of Account on media : sourceaccountname
Name of File on media : sourcefilename
Number of File on media : sourcefilenumber

 

SYNTAX ELEMENTS

sourceaccountname is the name of the account on the media where the source file resides.

sourcefilename is the name of the file on the media in which the source records reside.

sourcefilenumber is the number of the file on the media in which the source records reside.

targetfilename is the name of the file where the records are to be restored.

recordlist is a list specifying the record identifiers to be restored.

Option
Explanation
-A
Media already positioned in the section containing the account where the source file was located.
-C
Restore all records from the current media position.
-F
Display file names as the media is searched for the source file.
-I
Display record ids as they are restored.
-N
Prompt for source file number.
-O
Overwrite records which already exist in the target file.
-S
Suppress records already exist messages.

 

NOTES

Options may be specified after the targetfilename or recordlist by preceeding the options with a left parenthesis

Before execution the tape device should have been opened with the T-ATT command.

 

EXAMPLES

SEL-RESTORE NEWCODES * (I
Name of Account on media :PAYROLL
Name of File on media :TAXCODES

Restore all records from the file TAXCODES in account PAYROLL into the file NEWCODES. The record id will be displayed as each record is restored.

 

SEL-RESTORE NEWCODES SINGLE (N
Number of File on media :22

Restore record SINGLE from the file number 22 into the file NEWCODES.

Was this article helpful?