HELPLIB.HLB  —  CMS  DELETE  GENERATION  Examples
    (1) CMS> DELETE GENERATION/NOCONFIRM SAMPLE.PAS/GENERATION=5B1
        _Remark: Delete variant line
        %CMS-S-GENDELETED, 1 generation of element
        DISKX:[PROJECT.CMSLIB]SAMPLE.PAS deleted

      This command deletes generation 5B1 of the element SAMPLE.PAS.
      The /NOCONFIRM qualifier directs CMS to suppress the prompt
      confirming the operation.

    (2) CMS> DELETE GENERATION SAMPLE.*/AFTER=V1/BEFORE=V2
        _Remark: delete generations between released versions
        Delete 5 generations after V1(1) before V2(7) of element SAMPLE.PAS?
        [Y/N] (N): Y
        %CMS-S-GENDELETED, 5 generations of element
        DISKX:[PROJECT.CMSLIB]SAMPLE.PAS deleted

      This command deletes all generations of the element after the
      generation in class V1 and before the generation in class V2,
      excluding the two generations in classes V1 and V2.

    (3) CMS> DELETE GENERATION SAMPLE.PAS/AFTER=1/BEFORE=V1
        _Remark: delete a range
        %CMS-E-NOGENDELETED, no generations of
        DISKX:[PROJECT.CMSLIB]SAMPLE.PAS deleted
        -CMS-E-VARINRANGE, range has variants

        CMS> DELETE GENERATION/ARCHIVE/FROM=2A1/TO=2A1+/NOCONFIRM SAMPLE.PAS
        _Remark: delete the variant range and archive the deleted generations
        %CMS-S-GENDELETED, 3 generations of element
        DISKX:[PROJECT.CMSLIB]SAMPLE.PAS deleted

      The first command specifies that all generations be deleted
      between generation 1 and the generation in class V1. CMS could
      not delete the generations, however, because it found variants
      for the indicated generations.

      The second command specifies a range of generations to be
      deleted from and including the variant generation 2A1 to
      and including the latest variant generation of the element
      SAMPLE.PAS. In this case, CMS deleted 3 generations of the
      element. The /ARCHIVE qualifier directs CMS to save the deleted
      generations in an archive file in your default directory.

      To display the descendants of a generation and the
      classes containing the generations, use the SHOW
      GENERATION/DESCENDANTS/MEMBER command.
Close Help