<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Never ending ZIP process ... in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071951#M24844</link>
    <description>&amp;gt; Yes Art, use the /batch qualifier:&lt;BR /&gt;&lt;BR /&gt;Oops.  Yes.  Sorry.  /EXCLUDE (-x), /EXLIST&lt;BR /&gt;(-x@), /INCLUDE (-i), and /INLIST (-i@) are&lt;BR /&gt;for file name filtering.  /BATCH (-@) is for&lt;BR /&gt;the actual file name specification task.&lt;BR /&gt;&lt;BR /&gt;Boy, you just can't trust me for anything.</description>
    <pubDate>Tue, 02 Oct 2007 15:21:29 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2007-10-02T15:21:29Z</dc:date>
    <item>
      <title>Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071936#M24829</link>
      <description>actually it did end when I killed it 24 hours later ;-)&lt;BR /&gt;&lt;BR /&gt;I have a directory with &amp;gt; 250,000 text files (15 months of invoices) and I want to zip up the oldest three months.  I used this command:&lt;BR /&gt;&lt;BR /&gt;$ zip_cli disk:[dir.subdir.2006]2006_2.zip *.txt;* /bef=01-oct-2006 /move /keep /vms /nofull_path&lt;BR /&gt;&lt;BR /&gt;The process ran for 24 hours without producing "anything".  48M i/o's and nothing to show for it ;-)&lt;BR /&gt;&lt;BR /&gt;Would it be "faster" to use the /INLIST parameter?  Can (should) the format of the INLIST file be the result of a DIR/NOHEAD/NOTRAIL/OUT= , or should it just be a list of filenames only ie. no disk/dir info?&lt;BR /&gt;&lt;BR /&gt;I am presently renaming the files I want to zip to a temporary directory ... almost finished July 2006!&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Art</description>
      <pubDate>Tue, 02 Oct 2007 09:30:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071936#M24829</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2007-10-02T09:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071937#M24830</link>
      <description>FYI ...&lt;BR /&gt;&lt;BR /&gt;This is Zip 2.32 (June 19th 2006), by Info-ZIP.&lt;BR /&gt;&lt;BR /&gt;Alpha 800, VMS 7.2-2, HSG80 disk&lt;BR /&gt;&lt;BR /&gt;Art</description>
      <pubDate>Tue, 02 Oct 2007 09:32:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071937#M24830</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2007-10-02T09:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071938#M24831</link>
      <description>Big directories are slow and bigger still is slower still, and bigger is massively slower prior to V7.2.&lt;BR /&gt;&lt;BR /&gt;And is zip archive data size beyond the limits?  zip tips over rather ungracefully somewhere between 2GB and 4GB.  This prior to the beta versions 3 and 6 of zip and unzip.  Specific details on the triggering limits are included on the info-zip site.&lt;BR /&gt;&lt;BR /&gt;I'd move each of oldest three months out of the directory (COPY or RENAME) into a set of scratch directories, and package those individually from there.  This would help determine if this a data size or directory size issue.&lt;BR /&gt;&lt;BR /&gt;If you're so inclined, there are always the undocumented and unsupported BACKUP compression capabilities latent in V8.3.&lt;BR /&gt;&lt;BR /&gt;And a quarter-million files in a directory is certainly also an application issue.  That scale has never been something OpenVMS has been good at.  This area would be fodder for application changes; a quarter-million individual files in a directory just doesn't scale...  (And I have to wonder if the files are used with sufficient frequency, or if there's a better model for providing whatever or however these files are used.)&lt;BR /&gt;&lt;BR /&gt;A directory such as this one -- with a quarter-million files -- is unlikely to see significant improvements in the future.  (Well, not without significant ancillary upheaval.)  (Part of what's going on here can be masked by always adding and removing files at the end of the directory and by avoiding certain operations, but the design of directories on ODS-2 and ODS-5 is quite simply not scaling.  Scaling is probably the largest area where ODS-2 and ODS-5 are showing the relative age of the underlying designs -- a quarter-million files and a terabyte of storage just wasn't something considered reasonable way back when.)&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Oct 2007 09:54:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071938#M24831</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-10-02T09:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071939#M24832</link>
      <description>&lt;!--!*#--&gt;On the bright side, Zip 3.0 should emit a&lt;BR /&gt;friendly message like:&lt;BR /&gt;      Scanning files ..[...]&lt;BR /&gt;in this situation.  (With _lots_ of dots,&lt;BR /&gt;potentially.  I believe that this was added&lt;BR /&gt;in an attempt to soothe anxious users in just&lt;BR /&gt;this situation.)&lt;BR /&gt;&lt;BR /&gt;As for what would be faster, I don't know.&lt;BR /&gt;&lt;BR /&gt;I believe that /INLIST (-i) wants the same&lt;BR /&gt;kind of pattern specs as you'd put on the&lt;BR /&gt;command line, so a device spec should be&lt;BR /&gt;stripped off, but a directory spec will be&lt;BR /&gt;used.  (A quick test should reveal all.)&lt;BR /&gt;Knowing nothing, I tend to doubt that&lt;BR /&gt;scanning a name list will be particularly&lt;BR /&gt;faster (or slower) than doing the wildcard&lt;BR /&gt;expansion.  It'll still do for every name the&lt;BR /&gt;same stuff it always does.&lt;BR /&gt;&lt;BR /&gt;I can't admit to doing any performance&lt;BR /&gt;analysis on the file scanning code, so I&lt;BR /&gt;don't know what it's doing that takes all the&lt;BR /&gt;time.  (Gathering exciting file attribute&lt;BR /&gt;data, perhaps?)&lt;BR /&gt;&lt;BR /&gt;It might work better to create the archive&lt;BR /&gt;with some subset of the total file list, and&lt;BR /&gt;then add additional subsets using separate&lt;BR /&gt;Zip commands.  This might increase the total&lt;BR /&gt;time, but you could get some results&lt;BR /&gt;(messages and actual archive data) sooner.&lt;BR /&gt;(I don't actually do this much, but it _is_&lt;BR /&gt;supposed to work.  That's comforting, right?)</description>
      <pubDate>Tue, 02 Oct 2007 10:09:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071939#M24832</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-10-02T10:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071940#M24833</link>
      <description>Hoff, I totally agree with your take on the situation ... that many files in a directory is "insane".  Trying to do anything in that dir takes much patience!  I have spoken to the application people about this and it's on their "todo" list, but it's not their highest priority.  Beyond that I really wonder if there isn't something wrong with the app.  Considering the business they're in, 15 - 20,000 invoices a month doesn't seem reasonable (to me).&lt;BR /&gt;&lt;BR /&gt;Steven, if the list does not contain wildcards ie. exact filenames, would it not have to spend much less time compared to getting the timestamps from 250,000 files and "doing the math" to match the /before= switch?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Art</description>
      <pubDate>Tue, 02 Oct 2007 10:37:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071940#M24833</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2007-10-02T10:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071941#M24834</link>
      <description>The /BEFORE (-tt) may be slowing it down, but&lt;BR /&gt;eliminating that will not eliminate the whole&lt;BR /&gt;file scanning task.  Only one way to find out.</description>
      <pubDate>Tue, 02 Oct 2007 10:51:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071941#M24834</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-10-02T10:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071942#M24835</link>
      <description>&amp;gt;I have a directory with &amp;gt; 250,000 text files (15 months of invoices) and I want to &lt;BR /&gt;&lt;BR /&gt;So many problems have been fixed by not piling that many files into a single directory.&lt;BR /&gt;As you move stuff out of the directory, there was a directory&lt;BR /&gt;file 'defragger' tool around once. I'm not sure if its in the freeware stuff, but it&lt;BR /&gt;sure used to speed things up a lot.  Dean</description>
      <pubDate>Tue, 02 Oct 2007 11:40:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071942#M24835</guid>
      <dc:creator>Dean McGorrill</dc:creator>
      <dc:date>2007-10-02T11:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071943#M24836</link>
      <description>&lt;!--!*#--&gt;If you are renaming 10's of thousands of files from a directory the 'normal way', then you will suffer maximum hurting due to directory block recovery.&lt;BR /&gt;&lt;BR /&gt;You'll tackle 'low' blocks first, and as they empty the system will shuffle down the rest of the directory (a block at a time for old vms version, 64 blocks at a time by default for current versions).&lt;BR /&gt;&lt;BR /&gt;You may want to consider a two tiered approach, and you may want to consider a program, not a dcl script.&lt;BR /&gt;&lt;BR /&gt;Rename in reverse order, out of the original, to a helper, enforcing an increasing order. Next, rename from the helper, again from high to low, into the real target in real order.&lt;BR /&gt;&lt;BR /&gt;I thought I'd give you a quick perl script to demonstrate. That works, but it got out of hand some.&lt;BR /&gt;In this case perl tried to help too much.&lt;BR /&gt;&lt;BR /&gt;1) If it sees a wildcard on the command line, then it will expand that into a list of files.&lt;BR /&gt;&lt;BR /&gt;2) The glob function returns fully expanded names, which you then have to take apart to get the directory. A simple directory might be nicer for that.&lt;BR /&gt;&lt;BR /&gt;Full example below...&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ &lt;BR /&gt;$ dir [.tmp*]&lt;BR /&gt;&lt;BR /&gt;Directory [.TMP]&lt;BR /&gt;&lt;BR /&gt;2005MIES.TMP;1      2006AAP.TMP;1       2006MIES.TMP;2      2006MIES.TMP;1     &lt;BR /&gt;2006NOOT.TMP;1      2007MIES.TMP;1      FOO.DIR;1           NEWSRC.;1          &lt;BR /&gt;OTS_HIST_DETAIL.DIR;1                   &lt;BR /&gt;&lt;BR /&gt;Total of 9 files.&lt;BR /&gt;$ perl rename.pl """[.tmp]2006*.*"""&lt;BR /&gt;wild: "[.tmp]2006*.*"&lt;BR /&gt;3 files moved to [.tmp_helper]&lt;BR /&gt;&lt;BR /&gt;Directory [.TMP_HELPER]&lt;BR /&gt;&lt;BR /&gt;0000002006AAP.TMP;1 0000012006MIES.TMP;1                    &lt;BR /&gt;0000022006NOOT.TMP;1                    &lt;BR /&gt;&lt;BR /&gt;Total of 3 files.&lt;BR /&gt;$ dir [.tmp*]&lt;BR /&gt;&lt;BR /&gt;Directory [.TMP]&lt;BR /&gt;&lt;BR /&gt;2005MIES.TMP;1      2006MIES.TMP;1      2007MIES.TMP;1      FOO.DIR;1          &lt;BR /&gt;NEWSRC.;1           OTS_HIST_DETAIL.DIR;1                   &lt;BR /&gt;&lt;BR /&gt;Total of 6 files.&lt;BR /&gt;&lt;BR /&gt;Directory [.TMP_RENAMED]&lt;BR /&gt;&lt;BR /&gt;2006AAP.TMP;1       2006MIES.TMP;1      2006NOOT.TMP;1      &lt;BR /&gt;&lt;BR /&gt;Total of 3 files.&lt;BR /&gt;&lt;BR /&gt;Grand total of 2 directories, 9 files.&lt;BR /&gt;&lt;BR /&gt;$ type rename.pl&lt;BR /&gt;use strict;&lt;BR /&gt;#use warnings;&lt;BR /&gt;&lt;BR /&gt;my $HELPER = "[.tmp_helper]";&lt;BR /&gt;my $TARGET = "[.tmp_renamed]";&lt;BR /&gt;&lt;BR /&gt;my ($i,$file);&lt;BR /&gt;$_  = shift or die "Please provid double quoted wildcard filespec";&lt;BR /&gt;&lt;BR /&gt;print "wild: $_\n";&lt;BR /&gt;s/"//g;&lt;BR /&gt;my @files = glob;&lt;BR /&gt;die "Please provide double quoted wildcard filespec" if @files &amp;lt; 2;&lt;BR /&gt;&lt;BR /&gt;# phase 1&lt;BR /&gt; &lt;BR /&gt;for ($i=0; $i&amp;lt;@files; $i++) {&lt;BR /&gt;   my $old = $files[$i];&lt;BR /&gt;   my $name = (split /\]/,$old)[1];&lt;BR /&gt;   my $new = sprintf("%s%06d%s",$HELPER,$i,$name);&lt;BR /&gt;#   print "$old --&amp;gt; $new\n";&lt;BR /&gt;   rename $old, $new;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;print "$i files moved to $HELPER\n";&lt;BR /&gt;system ("DIRECTORY $HELPER");&lt;BR /&gt;# phase 2&lt;BR /&gt;&lt;BR /&gt;while ($i-- &amp;gt; 0)  {&lt;BR /&gt;   my $old = $files[$i];&lt;BR /&gt;   my $name = (split /\]/,$old)[1];&lt;BR /&gt;   my $new = sprintf("%s%06d%s",$HELPER,$i,$name);&lt;BR /&gt;   rename sprintf("%s%06d%s",$HELPER,$i,$name), $TARGET.$name;&lt;BR /&gt;}&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Oct 2007 11:48:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071943#M24836</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-10-02T11:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071944#M24837</link>
      <description>The BACKUP command has a /fast switch that tells it to scan the INDEXF.SYS file linearly vs looking in everay directory and randomly accessing file headers in INDEXF.SYS.&lt;BR /&gt;&lt;BR /&gt;For the type of operation you are doing, that method would be faster if you were using backup.  Perhaps you can talk Steven into adding such an option to zip 3.x :-)&lt;BR /&gt;&lt;BR /&gt;Art, when you said it didn't produce anything, are you saying is hadn't created any temporary file?  How did you determine that it hadn't?  (i.e. did you use ANALYZE/SYSTEM; set proc/in=xxxx ; sho proces/chan or something else?)&lt;BR /&gt;&lt;BR /&gt;Given your present situaltion, the following may work, although I don't know if there are any size limits on what can be presented to zip_cli as batch input.&lt;BR /&gt;&lt;BR /&gt;You could use DFU search /cre=(since=xxx,before=yyy) /file=zzz /sort /out=xxx.lis (I would suggest using a batch job)&lt;BR /&gt;&lt;BR /&gt;Then edit the output to remove the extra junk, and use that as a batch input file to zip_cli?&lt;BR /&gt;&lt;BR /&gt;Jon</description>
      <pubDate>Tue, 02 Oct 2007 12:04:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071944#M24837</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-10-02T12:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071945#M24838</link>
      <description>&amp;gt;&amp;gt;&amp;gt; As you move stuff out of the directory, there was a directory file 'defragger' tool around once. &amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;Directories are contiguous, and are managed and maintained by the file system in sorted order.&lt;BR /&gt;&lt;BR /&gt;There are fast(er) delete tools (eg: the so-called reverse delete that was mentioned), and the changes in caching in V7.2 improve performance, but there are inherent limits in how the processing occurs in directory files.&lt;BR /&gt;&lt;BR /&gt;There are tweaks around that increase the amount of deleted storage that can be present in a directory before the compression starts.&lt;BR /&gt;&lt;BR /&gt;Hein, when did the directory I/O fix hit?  V7.2?  Prior to this fix, directory I/O was one-block I/O, and the directory deletion block shuffle performance was really really really bad.  In releases containing the file, bigger I/O is used.  And 64 blocks?  ISTR the directory-shuffle I/O was 127 blocks.&lt;BR /&gt;&lt;BR /&gt;Regardless, delete is still N^2 in the directory; the earlier/lower the file sort order, the worse the performance.  And worse gets bad fast.&lt;BR /&gt;&lt;BR /&gt;When extending this directory, as you add files is also going to be slow -- even if the insertion order is chosen carefully.  If the insertion order chosen was not chosen with case, well...&lt;BR /&gt;&lt;BR /&gt;The other potential option here is a performance workaround; to move to silly-fast storage.  DECram, for instance.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Oct 2007 12:22:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071945#M24838</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-10-02T12:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071946#M24839</link>
      <description>&lt;!--!*#--&gt;For directories with lots of litlle files yo may also want to consider an LD devices on a file.&lt;BR /&gt;&lt;BR /&gt;The LD device could then have a cluster size which works wel with the typical smal file size.&lt;BR /&gt;&lt;BR /&gt;When all files are collected, dismount the LD device and zip up the file containing the device !?&lt;BR /&gt;&lt;BR /&gt;Applications creating lots of file in a single directory can often, but not always, be helped transparently by using SEARCH LIST. Define that target directory as [current],[rest].&lt;BR /&gt;That could also be [200710],[200709],[2007],[2006]&lt;BR /&gt;Once a month, or once a year, or whenever appropriate, you push a new empty, but pre-allocated dircetory in from of the definition and perhaps clean up the tail.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Btw.. on my last comment on the perl helping too much, that really applies to a simple DIRECTORY also, unless your default is actually in the directory itself.&lt;BR /&gt;&lt;BR /&gt;Below an example of that, still using perl.&lt;BR /&gt;By using the directory command, all the the slection switches (/BEFORE...) are aviable.&lt;BR /&gt;Perl has those also, but we all know directory better.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hein,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ perl [-]rename_dir.pl """2006*.*"""&lt;BR /&gt;wild: "2006*.*"&lt;BR /&gt;2006AAP.TMP;1       --&amp;gt; [-.tmp_helper]0000002006AAP.TMP;1      &lt;BR /&gt;2006MIES.TMP;2      --&amp;gt; [-.tmp_helper]0000012006MIES.TMP;2     &lt;BR /&gt;2006MIES.TMP;1      --&amp;gt; [-.tmp_helper]0000022006MIES.TMP;1     &lt;BR /&gt;2006NOOT.TMP;1      --&amp;gt; [-.tmp_helper]0000032006NOOT.TMP;1     &lt;BR /&gt;4 files moved to [-.tmp_helper]&lt;BR /&gt;&lt;BR /&gt;Directory [HEIN.TMP_HELPER]&lt;BR /&gt;&lt;BR /&gt;0000002006AAP.TMP;1 0000012006MIES.TMP;2                    &lt;BR /&gt;0000022006MIES.TMP;1                    0000032006NOOT.TMP;1&lt;BR /&gt;&lt;BR /&gt;Total of 4 files.&lt;BR /&gt;$ dir [-.tmp*]&lt;BR /&gt;&lt;BR /&gt;Directory [HEIN.TMP]&lt;BR /&gt;&lt;BR /&gt;2005MIES.TMP;1      2007MIES.TMP;1      FOO.DIR;1           NEWSRC.;1          &lt;BR /&gt;OTS_HIST_DETAIL.DIR;1                   &lt;BR /&gt;&lt;BR /&gt;Total of 5 files.&lt;BR /&gt;&lt;BR /&gt;Directory [HEIN.TMP_RENAMED]&lt;BR /&gt;&lt;BR /&gt;2006AAP.TMP;1       2006MIES.TMP;2      2006MIES.TMP;1      2006NOOT.TMP;1     &lt;BR /&gt;&lt;BR /&gt;Total of 4 files.&lt;BR /&gt;&lt;BR /&gt;Grand total of 2 directories, 9 files.&lt;BR /&gt;$ type [-]rename_dir.pl&lt;BR /&gt;use strict;&lt;BR /&gt;#use warnings;&lt;BR /&gt;&lt;BR /&gt;my $HELPER = "[-.tmp_helper]";&lt;BR /&gt;my $TARGET = "[-.tmp_renamed]";&lt;BR /&gt;my $i = 0;&lt;BR /&gt;my @files;&lt;BR /&gt;$_  = shift or die "Please provid double quoted wildcard filespec";&lt;BR /&gt;&lt;BR /&gt;print "wild: $_\n";&lt;BR /&gt;s/"//g;&lt;BR /&gt;my $wild = $_;&lt;BR /&gt;foreach (`DIRECTORY/COLU=1 $wild`) {&lt;BR /&gt;   chomp;&lt;BR /&gt;   $files[$i++] = $_ if /;/;&lt;BR /&gt;}  &lt;BR /&gt;die "Please provide double quoted wildcard filespec" if @files &amp;lt; 2;&lt;BR /&gt;&lt;BR /&gt;# phase 1&lt;BR /&gt; &lt;BR /&gt;for ($i=0; $i&amp;lt;@files; $i++) {&lt;BR /&gt;   my $name = $files[$i];&lt;BR /&gt;   my $new = sprintf("%s%06d%s",$HELPER,$i,$name);&lt;BR /&gt;   print "$name --&amp;gt; $new\n";&lt;BR /&gt;   rename $name, $new;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;print "$i files moved to $HELPER\n";&lt;BR /&gt;system ("DIRECTORY $HELPER");&lt;BR /&gt;# phase 2&lt;BR /&gt;&lt;BR /&gt;while ($i-- &amp;gt; 0)  {&lt;BR /&gt;   my $name = $files[$i];&lt;BR /&gt;   rename sprintf("%s%06d%s",$HELPER,$i,$name), $TARGET.$name;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Oct 2007 12:23:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071946#M24839</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-10-02T12:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071947#M24840</link>
      <description>Hoff,&lt;BR /&gt;&lt;BR /&gt;I think Andy did the directory shuffle improvements in 7.2 but I'm travelling and do not have my (VMS)notes here to verify that.&lt;BR /&gt;&lt;BR /&gt;The actual IO size used is defined by SYSGEN param: acp_maxread&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/DOC/82FINAL/6048/6048pro_090.html" target="_blank"&gt;http://h71000.www7.hp.com/DOC/82FINAL/6048/6048pro_090.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;All,&lt;BR /&gt;&lt;BR /&gt;Please find attached a special XFC trace our friend Mark H made, showing the XQP directory management for behaviour. The example is for a delete. For a rename the bitmap writes will go away, and the indexf.sys writes might go away (directory backlink update!?) but the directory IO is exactly the same on the old side and joied with directory IO fo rthe new name.&lt;BR /&gt;&lt;BR /&gt;The trace shows most recent on top.&lt;BR /&gt;So you need to start at teh bottom&lt;BR /&gt;Te first few deletes are 'easy'.&lt;BR /&gt;Then about 20 lines from the bottom a delete empties a directory blocks and triggers a down shuffle.&lt;BR /&gt;&lt;BR /&gt;Enjoy!&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;HvdH Performance Consulting.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Oct 2007 13:52:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071947#M24840</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-10-02T13:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071948#M24841</link>
      <description>What would the syntax be to use /inlist= ?&lt;BR /&gt;&lt;BR /&gt;$ zip_cli test.zip /inlist=test_tozip.lis  /move/keep/vms/nofull_path&lt;BR /&gt;&lt;BR /&gt;zip error: Invalid command arguments (nothing to select from)&lt;BR /&gt;&lt;BR /&gt;Where the inlist file has:&lt;BR /&gt;&lt;BR /&gt;$ ty test_tozip.lis&lt;BR /&gt;TEST.COM;13        &lt;BR /&gt;TEST.COM;12        &lt;BR /&gt;TEST.COM;11        &lt;BR /&gt;TEST.COM;10        &lt;BR /&gt;TEST.COM;9         &lt;BR /&gt;TEST.COM;8         &lt;BR /&gt;TEST.COM;7         &lt;BR /&gt;TEST.COM;6         &lt;BR /&gt;TEST.COM;5         &lt;BR /&gt;TEST.COM;4         &lt;BR /&gt;TEST.COM;3         &lt;BR /&gt;TEST.COM;2         &lt;BR /&gt;TEST.COM;1&lt;BR /&gt;&lt;BR /&gt;Art</description>
      <pubDate>Tue, 02 Oct 2007 14:35:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071948#M24841</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2007-10-02T14:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071949#M24842</link>
      <description>Or should I actually be using the /batch= qualifier rather than /inlist= ?&lt;BR /&gt;&lt;BR /&gt;Art</description>
      <pubDate>Tue, 02 Oct 2007 14:41:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071949#M24842</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2007-10-02T14:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071950#M24843</link>
      <description>Yes Art, use the /batch qualifier:&lt;BR /&gt;&lt;BR /&gt;$ zip_cli test.zip /batch=test_tozip.lis  /move/keep/vms/nofull_path&lt;BR /&gt;  adding: TEST.COM;13 (deflated 45%)&lt;BR /&gt;  adding: TEST.COM;12 (deflated 12%)&lt;BR /&gt;  adding: TEST.COM;11 (deflated 15%)&lt;BR /&gt;  adding: TEST.COM;10 (deflated 15%)&lt;BR /&gt;  adding: TEST.COM;9 (deflated 10%)&lt;BR /&gt;  adding: TEST.COM;8 (deflated 4%)&lt;BR /&gt;  adding: TEST.COM;7 (deflated 10%)&lt;BR /&gt;  adding: TEST.COM;6 (deflated 10%)&lt;BR /&gt;  adding: TEST.COM;5 (deflated 1%)&lt;BR /&gt;  adding: TEST.COM;4 (deflated 1%)&lt;BR /&gt;  adding: TEST.COM;3 (deflated 63%)&lt;BR /&gt;  adding: TEST.COM;2 (deflated 63%)&lt;BR /&gt;  adding: TEST.COM;1 (deflated 63%)&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Art</description>
      <pubDate>Tue, 02 Oct 2007 15:11:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071950#M24843</guid>
      <dc:creator>Art Wiens</dc:creator>
      <dc:date>2007-10-02T15:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071951#M24844</link>
      <description>&amp;gt; Yes Art, use the /batch qualifier:&lt;BR /&gt;&lt;BR /&gt;Oops.  Yes.  Sorry.  /EXCLUDE (-x), /EXLIST&lt;BR /&gt;(-x@), /INCLUDE (-i), and /INLIST (-i@) are&lt;BR /&gt;for file name filtering.  /BATCH (-@) is for&lt;BR /&gt;the actual file name specification task.&lt;BR /&gt;&lt;BR /&gt;Boy, you just can't trust me for anything.</description>
      <pubDate>Tue, 02 Oct 2007 15:21:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071951#M24844</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-10-02T15:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071952#M24845</link>
      <description>&amp;gt;&amp;gt;&amp;gt; As you move stuff out of the directory, there was a directory file 'defragger' tool around once. &amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;hoff this was some tool one of the system managers had to shrink a directory, supposedly worked faster. I didn't trust it.&lt;BR /&gt;reason I rember it was it broke on him once&lt;BR /&gt;doing users mail and corrupted the directory file. wound up picking up all the&lt;BR /&gt;files out of syslost, he got em back with anal/disk/repair. (unhappy user)</description>
      <pubDate>Tue, 02 Oct 2007 15:24:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071952#M24845</guid>
      <dc:creator>Dean McGorrill</dc:creator>
      <dc:date>2007-10-02T15:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071953#M24846</link>
      <description>Re: Directory compression&lt;BR /&gt;&lt;BR /&gt;Well, there used to be a tool called 'comdir' we (Colin Blake) developped in the 80's in Valbonne.&lt;BR /&gt;&lt;BR /&gt;DFU picked this up in the DIRECTORY /COMPRESS command with optional /FILL&lt;BR /&gt;&lt;BR /&gt;DFU&lt;BR /&gt; DIRECTORY&lt;BR /&gt;       /FILL_FACTOR=percentage&lt;BR /&gt;&lt;BR /&gt;       This qualifier is only valid in combination with /COMPRESS. Default behaviour for DFU is to compress a directory as tight as possible; this is equivalent to /FILL_FACTOR=100. By choosing a lower fill_factor DFU will leave some free space in each directory block. /FILL_FACTOR may be between 50 and 100 %. Caution : choosing a fill_factor lower than 100% may fail if the directory file is not large enough. In that case DFU will signal an error and advise using a higher fill_factor.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Oct 2007 16:07:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071953#M24846</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-10-02T16:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071954#M24847</link>
      <description>If the application uses a logical to access the files, you can use a search list to force creation in smaller directories (without modifiying the application itself.&lt;BR /&gt;&lt;BR /&gt;define logic dev:[2006.12],dev:[2006.11]&lt;BR /&gt;&lt;BR /&gt;create logic:a.txt&lt;BR /&gt;&lt;BR /&gt;The file will be created in the 12 directory.&lt;BR /&gt;&lt;BR /&gt;In January you simply change it to &lt;BR /&gt;&lt;BR /&gt;define logic dev:[2007.1],dev:[2006.12],dev:[2006.11]&lt;BR /&gt;&lt;BR /&gt;and files are created in the 1 directory.&lt;BR /&gt;&lt;BR /&gt;Thus you can zip a much smaller directroy.&lt;BR /&gt;&lt;BR /&gt;This will of course not solve your problem now because tou already are stuck with the big directory.&lt;BR /&gt;&lt;BR /&gt;Wim&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Oct 2007 01:25:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071954#M24847</guid>
      <dc:creator>Wim Van den Wyngaert</dc:creator>
      <dc:date>2007-10-03T01:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Never ending ZIP process ...</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071955#M24848</link>
      <description>A copy of an old post&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I suppose that your appli puts files in a directory named disk$appli,&lt;BR /&gt;and that your appli is started every morning and shut every evening.&lt;BR /&gt;&lt;BR /&gt;May be you should do the following, define disk$appli as a search-list&lt;BR /&gt;&lt;BR /&gt;The following will automagically roll&lt;BR /&gt;&lt;BR /&gt;def disk$appli disk:&lt;DIR.&gt;-&lt;BR /&gt;disk:&lt;DIR.&gt;-&lt;BR /&gt;disk:&lt;DIR.&gt;-&lt;BR /&gt;disk:&lt;DIR.&gt;-&lt;BR /&gt;disk:&lt;DIR.&gt;-&lt;BR /&gt;disk:&lt;DIR.&gt;-&lt;BR /&gt;disk:&lt;DIR.&gt;&lt;BR /&gt;&lt;BR /&gt;Of course you have to create your directory &amp;lt;.monday&amp;gt; and so&lt;BR /&gt;&lt;BR /&gt;You can of course use a little dcl to have a search-list with many more&lt;BR /&gt;elements, and make it roll.&lt;BR /&gt;&lt;BR /&gt;On monday you can quietly move the file in &amp;lt;.tuesday&amp;gt; and other&lt;BR /&gt;directories to otherwhere, while not disturbing the application.&lt;/DIR.&gt;&lt;/DIR.&gt;&lt;/DIR.&gt;&lt;/DIR.&gt;&lt;/DIR.&gt;&lt;/DIR.&gt;&lt;/DIR.&gt;</description>
      <pubDate>Wed, 03 Oct 2007 03:36:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/never-ending-zip-process/m-p/5071955#M24848</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2007-10-03T03:36:08Z</dc:date>
    </item>
  </channel>
</rss>

