Operating System - OpenVMS
1754414 Members
2743 Online
108813 Solutions
New Discussion юеВ

delete version in cms library

 
Shamseer Abdullah
Occasional Advisor

delete version in cms library

Hi

Can anybody tell me how to delete a particular version of a file in CMS library.

I am getting the error message when running the following command.
command:
cms delete generation/gen=105 LOGIN.COM

error:
%CMS-E-NOGENDELETED, no generations of element CMSLIB$DISK:[DEAF.APPS_CMS]LOGIN.COM deleted
-CMS-E-ISMEMBER, element generation belongs to a class
%CMS-E-ERRGENDELETIONS, 0 deletions of element generations completed and 1 error occurred
4 REPLIES 4
Volker Halle
Honored Contributor

Re: delete version in cms library

Shamseer,

this generation of the element is member of a class. You would need to this generation of the element from the class, before you can delete the element:

$ CMS REMOVE GENERATION/GEN=105 login.com class-name

It should be possible to use a wildcard class-name, if you don't know, which class this generation of the element is in.

Whether this operation makes sense in the context of your CMS library and release strategy, I cannot tell.

Volker.
Shamseer Abdullah
Occasional Advisor

Re: delete version in cms library

Hi Volker

Is there any command to find the class name of a particular file

Regards
Shamseer
Volker Halle
Honored Contributor

Re: delete version in cms library

Shamseer,

$ CMS SHOW HIST LOGIN.COM

should show the element history and should also list the INSERT operation, if this element has been inserted into a class.

Volker.
Volker Halle
Honored Contributor

Re: delete version in cms library

$ CMS SHOW GEN/MEMBER LOGIN.COM

Volker.