HP 3000 Manuals

ERASE SET [ DBChange Plus User's Guide ] MPE/iX 5.0 Documentation


DBChange Plus User's Guide

ERASE SET 

Erases entries in manual master and detail data sets.

Syntax 

ER[ASE] SET {DetailSetName      }
            {ManualMasterSetName}

Parameters 

DetailSetName             is the name of the detail data set which
                          contains entries to be erased.

                          For a standalone detail data set, all entries
                          are erased.  If the detail data set is linked
                          to one or more automatic master data sets, all
                          detail data set entries are erased, and the
                          appropriate chain counts and chain pointers of
                          the related automatic master data set entries
                          are set to zero.  If the deletion of a detail
                          data set entry results in an automatic master
                          data set entry not being linked to any detail
                          entries, the master data set entry is deleted.
                          If the detail data set is linked to one or more
                          manual master data sets, all detail data set
                          entries are erased, and the appropriate chain
                          counts and chain pointers of the related manual
                          master data set entries are set to zero.

                          Manual master data set entries are left in the
                          master data set whether or not the master data
                          set entries are linked to any detail data set
                          entries.

                          You cannot explicitly erase entries in an
                          automatic master data set.  Automatic master
                          data set entries are erased via related detail
                          data set entries.

ManualMasterSetName       is the name of the manual master data set which
                          contains entries to be deleted.

                          For a standalone manual master data set, all
                          entries are erased.  For a manual master data
                          set with one or more paths to detail data sets,
                          and the detail entries in all paths are empty
                          (zero count), all entries in the manual master
                          data set are erased.

                          You cannot delete entries from a manual master
                          data set with one or more paths to detail data
                          sets which contain entries (path counts are not
                          zero).

Description 

Use the ERASE SET command to erase entries in manual master and detail
data sets.  In session mode, a confirmation message is displayed to
confirm the erasure of the data set entries.  In batch mode, the data set
is erased without confirmation.  If you want to cancel the specifed
erasure, use the CANCEL ERASE command before running the DBAPLUS program.

Example 

     >erase set inventory 
      To confirm erase of data set, enter Y for Yes. y 
      Erase Set issued for data set.

     >

In this example, the ERASE SET command erases the entries in the
INVENTORY detail data set.



MPE/iX 5.0 Documentation