Copying Items from Backup Media

The T-LOAD command copies items back to the hard disk drive that were previously copied to backup media with the T-DUMP or S-DUMP commands. These items may only be copied to an existing file. When the user includes a selection expression, T-LOAD uses the Attribute Definition items of the dictionary of the file being loaded into in order to interpret the layout of the items on the backup medium.

After the copy operation is complete, the backup medium is once again positioned just after the End-Of-File (EOF) mark.

Format

T-LOAD [DICT] filename [item-list] [selection][ID-SUPP] (I | O)]

Description

The I option and the ID-SUPP modifier suppress the listing of item-IDs during the copy operation. The O option overwrites the items on hard disk that correspond to items copied from backup media. If the O option isn’t included in the query, the system displays an error message for each file item that already exists on hard disk.

The next statement copies from backup media, all items from the ORDERS file whose date is during the months November and December of 1987. This example also overwrites the corresponding file items on hard disk and suppresses the listing of item-IDs.

>T-LOAD ORDERS WITH DATE GE "11/01/97" AND LE "12/31/97" (I,O)

378 ITEMS LOADED.

See Also

Copying Items to and from Backup Media

Copying Items to Backup Media

Tape Format Commands vs. the TAPE Modifier