VMS Help
PURGE, Examples

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

    1.$ PURGE

      The PURGE command in this example deletes all but the highest
      numbered version of all files in the default directory.

    2.$ PURGE *.COM

      The PURGE command in this example deletes all but the highest
      numbered version of each file with a file type of .COM.

    3.$ PURGE/KEEP=3  [WILDER.JOB308]ACCOUNT.COB

      The PURGE command in this example deletes all but the three
      highest numbered versions of the file ACCOUNT.COB in the
      subdirectory [WILDER.JOB308].

    4.$ PURGE/ERASE/SINCE=YESTERDAY [.MEMOS]

      The PURGE command in this example purges all files in the MEMOS
      subdirectory that have been created or modified since yesterday
      and erases the storage locations so that the purged data no
      longer exists.

    5.$ PURGE [BRODRIBB.TESTFILES]/LOG
      %PURGE-I-FILPURG, DISK1:[BRODRIBB.TESTFILES]AVE.OBJ;1 deleted (3 blocks)
      %PURGE-I-FILPURG, DISK1:[BRODRIBB.TESTFILES]BACK.OBJ;2 deleted (5 blocks)
      %PURGE-I-TOTAL, 2 files deleted (8 blocks)

      The PURGE command in this example purges all files cataloged in
      the subdirectory named [BRODRIBB.TESTFILES]. The /LOG qualifier
      requests the PURGE command to display the specification of each
      file it has deleted as well as the total number of files that
      have been deleted.

    6.$ PURGE/KEEP=2 TAMPA::DISK1:[EXAMPLE]*.LIS

      The PURGE command in this example deletes all but the two
      highest numbered versions of each file with the file type .LIS
      in the directory EXAMPLE on remote node TAMPA.
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.