HP 3000 Manuals

RECOVER ITEM [ DBChange Plus User's Guide ] MPE/iX 5.0 Documentation


DBChange Plus User's Guide

RECOVER ITEM 

Cancels a DELETE ITEM command stored in the change file.

Syntax 

     REC[OVER] ITEM DataItemName 

Parameters 

DataItemName        is the name of the data item to be recovered.

Description 

Use this command to recover a data item, its type and security
definitions, and all fields represented by the data item.

The recovery can only take place if DBAPLUS has not yet been run against
the current change file.  Once DBAPLUS restructures a database, data
items can no longer be recovered.  In addition, if a new data item has
already been added with the same name as the deleted item, then the
deleted item cannot be recovered.

If the deleted data item is a field in a data set that has been
subsequently changed, the field is not recovered with this command.  That
is, if any changes to the data set containing the deleted field are
stored in the current change file, the field must be recovered by adding
it back with the ADD FIELD command.  For example, suppose you change a
data set capacity and then want to recover a deleted data item that was a
field in that data set.  Because the data set has been changed, you must
add the deleted field, using the ADD FIELD command, to that data set.

Example 

     >delete item zip 
     >change password CLERK SALESREP 
     >recover item zip 

In this example, the data item ZIP, its type and security definitions,
and all fields represented by the data item are recovered, provided the
data sets containing the fields have not been changed and DBAPLUS has not
yet been run against the current change file.



MPE/iX 5.0 Documentation