From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,bd4330eaa1f685a6 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,bd4330eaa1f685a6 X-Google-Attributes: gid1164f8,public From: carl@gerg.tamu.edu (Carl Perkins) Subject: Re: "NOPE" resurrected. Displays PURGE info, without DOING the purge... Date: 1997/05/10 Message-ID: <10MAY199714160414@gerg.tamu.edu>#1/1 X-Deja-AN: 240686294 Distribution: world References: <1997May9.152046.1@cpg.mcw.edu> <5l28p1$110$1@Mars.mcs.net> X-Lunar-Date: 3 days, 21 hrs, 20 mins until the first quarter of the moon (U.T.) Organization: Geochemical and Environmental Research Group - TAMU News-Software: VAX/VMS VNEWS 1.50AAXP NNTP-Posting-Date: 10 May 1997 19:17:08 GMT Newsgroups: comp.os.vms,comp.sys.dec In article <5l28p1$110$1@Mars.mcs.net>, ddellutr@MCS.COM (Dale Dellutri) writes... }In comp.os.vms Kent C Brodie wrote: }> I recently resurrected the "NOPE" utility. A cute, but VERY handy }> system manager tool. Basically, it displays files that _WOULD_ be purged }> *IF* you did a purge (and it lets you use wild cards, filespecs, etc). } }Won't this (not completely tested) com file do what you want? }So for example, you could say } @NOPE *.* "" "/col=1/nohea/notra" }and get a listing (in NOPE.LIS) of all the files in a single }column format without header or trailer. } [...] }$dir_loop: }$ dir'p3' 'p1';-'i' }$ if $status .ne. %X00000001 then goto done }$ i = i + 1 }$ goto dir_loop }$done: }$ deassign sys$output }$ exit }-- }Dale Dellutri Nope ;-) At lseast, I expect not. I don't actually have NOPE, but I see problems with what you have there. What happens if I want to keep 2 versions of the files, I.E. find out what files would be deleted if I did a PURGE/KEEP=2? Or perhaps a PURGE/BEFORE=YESTERDAY? Or both via PURGE/KEEP=2/BEFORE=YESTERDAY? I expect that NOPE does those cases. If it doesn't, it ought to. The order that files appear on your list will also be different for a lot of those cases that work for both. Say your directory has these files in it: A.A;3 A.A;2 A.A;1 B.B;3 B.B;2 B.B;1 C.C;2 C.C;1 D.D;3 D.D;2 D.D;1 Your .COM file will list these: A.A;2 B.B;2 C.C;1 D.D;2 A.A;1 B.B;1 D.D;1 Listing the files the way you have it is not as good as listing all the A.A versions, then all the B.B versions and so on. (I am assuming that this "grouped by file name" is the order NOPE lists them in - if it isn't, it should be! It is the order an actual purge uses and it is more informative.) To get the better order from your current method you'd need to do a sort on the file name & extender fields, which could get complicated when all the file names are not the same length and even more so when you have multiple directories since you want to keep them sorted by directory too. You could do better using the f$search lexical - of course you could also save yourself the trouble and go get NOPE (assuming it works the way (I think) it should). --- Carl