VMS Help CMS, COPY, ELEMENT, Examples *Conan The Librarian (sorry for the slow response - running on an old VAX) |
(1) CMS> COPY ELEMENT INIT.FOR INITX.FOR "experimental version" %CMS-S-COPIED, element DISKX:[PROJECT.CMSLIB]INIT.FOR copied to INITX.FOR This command creates a new element named INITX.FOR in the same library as the old element. (2) $ CREATE/DIRECTORY [RELEASE.CMSLIB] $ CMS CMS> CREATE LIBRARY [RELEASE.CMSLIB] "follows development library" %CMS-S-CREATED, CMS Library DISKX:[RELEASE.CMSLIB] created CMS> COPY ELEMENT *.*/LIBRARY=[PROJECT.CMSLIB] *.* "loading elements" %CMS-I-COPIED, element DISKX:[PROJECT.CMSLIB]INIT.FOR copied to DISKX:[RELEASE.CMSLIB]INIT.FOR %CMS-I-COPIED, element DISKX:[PROJECT.CMSLIB]INITX.FOR copied to DISKX:[RELEASE.CMSLIB]INITX.FOR %CMS-I-COPIED, element DISKX:[PROJECT.CMSLIB]MSGDOC.FOR copied to DISKX:[RELEASE.CMSLIB]MSGDOC.FOR %CMS-I-COPIED, element DISKX:[PROJECT.CMSLIB]OUTPUT.FOR copied to DISKX:[RELEASE.CMSLIB]OUTPUT.FOR %CMS-I-COPIED, element DISKX:[PROJECT.CMSLIB]SEARCH.FOR copied to DISKX:[RELEASE.CMSLIB]SEARCH.FOR %CMS-I-COPIED, element DISKX:[PROJECT.CMSLIB]ARGCHK.FOR copied to DISKX:[RELEASE.CMSLIB]ARGCHK.FOR %CMS-S-COPIES, 6 copies completed CMS> SHOW HISTORY History of CMS Library DISKX:[RELEASE.CMSLIB] 9-MAY-1988 11:23:43 SMITH CREATE LIBRARY DISKX:[RELEASE.CMSLIB] "follows development library" 9-MAY-1988 11:26:00 SMITH COPY ELEMENT/LIBRARY=DISKX:[PROJECT.CMSLIB] INIT.FOR INIT.FOR "loading elements" 9-MAY-1988 11:26:04 SMITH COPY ELEMENT/LIBRARY=DISKX:[PROJECT.CMSLIB] INITX.FOR INITX.FOR "loading elements" 9-MAY-1988 11:26:07 SMITH COPY ELEMENT/LIBRARY=DISKX:[PROJECT.CMSLIB] MSGDOC.FOR MSGDOC.FOR "loading elements" 9-MAY-1988 11:26:15 SMITH COPY ELEMENT/LIBRARY=DISKX:[PROJECT.CMSLIB] OUTPUT.FOR OUTPUT.FOR "loading elements" 9-MAY-1988 11:26:17 SMITH COPY ELEMENT/LIBRARY=DISKX:[PROJECT.CMSLIB] SEARCH.FOR SEARCH.FOR "loading elements" 9-MAY-1988 11:26:19 SMITH COPY ELEMENT/LIBRARY=DISKX:[PROJECT.CMSLIB] ARGCHK.FOR ARGCHK.FOR "loading elements" CMS> SHOW GENERATION/DESCENDANTS INIT.FOR Element generations in CMS Library DISKX:[RELEASE.CMSLIB] INIT.FOR 2 6-MAR-1988 17:34:04 SMITH "header offset and additional free space added" 1 6-MAR-1988 17:26:10 SMITH "initialization routines" This example creates a new directory for a new library, and then copies all of the elements from the library [PROJECT.CMSLIB] into the new library [RELEASE.CMSLIB]. Because the new elements are being created in a separate library, CMS can create new elements with the same names as the old elements; thus, a null string may be entered for the second parameter (for the new element name). In this case, CMS supplies the value *.*. The SHOW HISTORY command that is executed after the copy transaction indicates that the library history contains only records of transactions performed on the new library (CREATE LIBRARY and COPY transactions). The SHOW GENERATION/DESCENDANTS command shows the generation history for one of the elements. The COPY ELEMENT transaction preserves the generation history for each element; thus, the record of replacement transactions (also the CREATE ELEMENT transaction that produced generation 1 of the element) is maintained from the old element to the new.
|