<?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: how to zip multiple files? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068278#M13341</link>
    <description>Hah! Beat you to it Jan! :-).&lt;BR /&gt;&lt;BR /&gt;Just kidding. &lt;BR /&gt;&lt;BR /&gt;I just happened to be doing my lunch break tour of the forums/c.o.v and such. :-).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; (This is also a demonstration of the unwise choice of display in these forums. &lt;BR /&gt;&lt;BR /&gt;Yeah... really hard to spot the comma/semi in the read display font. Nice and clear in the reply window and/or pasted to a terminal.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; In your first command you used a comma ( " , " ) as separator, and THAT would generate a syntax error.&lt;BR /&gt;&lt;BR /&gt;well, not a syntax error. It is valid, but useless as it fails to provide the explicit version number needed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 11 Sep 2007 12:17:47 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2007-09-11T12:17:47Z</dc:date>
    <item>
      <title>how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068259#M13322</link>
      <description>I got hundreds files with continuous serial in the filename. e.g. doc001.dat, doc002.dat, docxxx.dat&lt;BR /&gt;&lt;BR /&gt;how can I use zip to compress some of them(the situation below) to a  single zip file?&lt;BR /&gt;say i) doc300.dat to doc320.dat &lt;BR /&gt;    ii) doc005.dat, doc201.dat and doc412.dat&lt;BR /&gt;&lt;BR /&gt;and I will transfer the zip file to windows xp, so $ zip/VMS/ should be used?&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;&lt;BR /&gt;running environment: openvms 8.2 I64, zip 2.3</description>
      <pubDate>Mon, 10 Sep 2007 13:30:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068259#M13322</guid>
      <dc:creator>blaster2007</dc:creator>
      <dc:date>2007-09-10T13:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068260#M13323</link>
      <description>zip filename.zip doc*.dat&lt;BR /&gt;zip filename.zip doc300.dat,doc301.dat, etc.&lt;BR /&gt;&lt;BR /&gt;zip filename.zip doc005.dat,doc201.dat,doc412.dat&lt;BR /&gt;I think you can also do the zip and then do new files to same zip file and it will add them.</description>
      <pubDate>Mon, 10 Sep 2007 14:07:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068260#M13323</guid>
      <dc:creator>Peter Zeiszler</dc:creator>
      <dc:date>2007-09-10T14:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068261#M13324</link>
      <description>The zip program I use doesn't recognize comma as a delimiter for the filename arguments, only spaces (but wildcards work).&lt;BR /&gt;&lt;BR /&gt;You can create a file containing the list of files to put in the zip archive (whitespace or newlines between filenames), define sys$input to this file, then run zip with the -@ option.</description>
      <pubDate>Mon, 10 Sep 2007 14:15:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068261#M13324</guid>
      <dc:creator>David Jones_21</dc:creator>
      <dc:date>2007-09-10T14:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068262#M13325</link>
      <description>As Peter indicates, just use a list, until that become impractical.&lt;BR /&gt;&lt;BR /&gt;How do yo know which files to select?&lt;BR /&gt;Are they listed in a file?&lt;BR /&gt;&lt;BR /&gt;Well then just pass that file as SYS$INPUT and use the option '-@'. &lt;BR /&gt;&lt;BR /&gt;That can also be done to read from a pipe:&lt;BR /&gt;&lt;BR /&gt;$ pipe dir/col=1/nohead/notra *a*.txt; | zip test -@&lt;BR /&gt;&lt;BR /&gt;What makes those selected files special?&lt;BR /&gt;Can you automate the selecting in a DCL/Perl script?&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein van den Heuvel (at gmail dot com)&lt;BR /&gt;HvdH Performance Consulting&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Sep 2007 14:16:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068262#M13325</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-09-10T14:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068263#M13326</link>
      <description>Welcome to ITRC.&lt;BR /&gt;&lt;BR /&gt;The zip can add files into an existing zip archive (with the "-u" option), which means that a DCL loop is trivial to code; f$search can select the files in sequence, and each file gets added into the archive.&lt;BR /&gt;&lt;BR /&gt;There are any number of examples of using the f$search call in a loop within DCL; here in ITRC, on the Freeware, in the "James" support datanase, in the OpenVMS manuals, and elsewhere on the 'net.&lt;BR /&gt;&lt;BR /&gt;f$search("doc%%%.dat") would be at the core of the loop, repeated until no more files are found.  (Or until you've extracted the trailing numerics and converted them to integers for range-testing, for instance.)&lt;BR /&gt;&lt;BR /&gt;And since you're aiming for Microsoft Windows, make sure the RMS sequential data files are using Stream or Stream-LF record format.  If they're not, you'll want to have your loop use CONVERT/FDL or such to convert the file structures over.  This because Windows doesn't appreciate finding the RMS VFC structures, for instance.&lt;BR /&gt;&lt;BR /&gt;Please upgrade your version of zip, too.  You will want to use zip 2.32.  There's a copy of this and of unzip 5.54 available on the Freeware V8.0 distro, over at the Process software OpenVMS archives, or likely over at the Info-Zip.org web site.&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Sep 2007 15:02:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068263#M13326</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-09-10T15:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068264#M13327</link>
      <description>"And since you're aiming for Microsoft Windows, make sure the RMS sequential data files are using Stream or Stream-LF record format. If they're not, you'll want to have your loop use CONVERT/FDL or such to convert the file structures over. This because Windows doesn't appreciate finding the RMS VFC structures, for instance."&lt;BR /&gt;&lt;BR /&gt;---------&lt;BR /&gt;&lt;BR /&gt;I tried to reproduce the problem Hoff is describing above, but I must be doing something wrong.&lt;BR /&gt;&lt;BR /&gt;I created a VFC file using the following command file, which I called test_vfc.com&lt;BR /&gt;&lt;BR /&gt;-----------&lt;BR /&gt;$ open/write vfc vfc.dat&lt;BR /&gt;$ c=1&lt;BR /&gt;$ top:&lt;BR /&gt;$ write vfc c&lt;BR /&gt;$ c = c + 1&lt;BR /&gt;$ if c .le. 100 then goto top&lt;BR /&gt;$ close vfc&lt;BR /&gt;$ exit&lt;BR /&gt;-----------&lt;BR /&gt;&lt;BR /&gt;ROOT$USERS:[JON]TEST_VFC.COM;1 8 lines&lt;BR /&gt;&lt;BR /&gt;$ dir/ful vfc.dat&lt;BR /&gt;%DIRECT-W-NOFILES, no files found&lt;BR /&gt;$ @test_vfc&lt;BR /&gt;$ dir/ful vfc.dat&lt;BR /&gt;&lt;BR /&gt;Directory ROOT$USERS:[JON]&lt;BR /&gt;&lt;BR /&gt;VFC.DAT;1                     File ID:  (235106,52,0)         &lt;BR /&gt;Size:            2/8          Owner:    [ILS002,JON]&lt;BR /&gt;Created:    10-SEP-2007 19:52:12.67&lt;BR /&gt;Revised:    10-SEP-2007 19:52:12.70 (1)&lt;BR /&gt;Expires:    10-SEP-2007 19:52:12.71&lt;BR /&gt;Backup:     &lt;NO backup="" recorded=""&gt;&lt;BR /&gt;Effective:  &lt;NONE specified=""&gt;&lt;BR /&gt;Recording:  &lt;NONE specified=""&gt;&lt;BR /&gt;Accessed:   &lt;NONE specified=""&gt;&lt;BR /&gt;Attributes: &lt;NONE specified=""&gt;&lt;BR /&gt;Modified:   &lt;NONE specified=""&gt;&lt;BR /&gt;Linkcount:  1&lt;BR /&gt;File organization:  Sequential&lt;BR /&gt;Shelved state:      Online &lt;BR /&gt;Caching attribute:  Writethrough&lt;BR /&gt;File attributes:    Allocation: 8, Extend: 0, Global buffer count: 0, No version limit&lt;BR /&gt;Record format:      VFC, 2 byte header, maximum 0 bytes, longest 3 bytes&lt;BR /&gt;Record attributes:  Print file carriage control&lt;BR /&gt;RMS attributes:     None&lt;BR /&gt;Journaling enabled: None&lt;BR /&gt;File protection:    System:RWED, Owner:RWED, Group:, World:&lt;BR /&gt;Access Cntrl List:  None&lt;BR /&gt;Client attributes:  None&lt;BR /&gt;&lt;BR /&gt;Total of 1 file, 2/8 blocks.&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;Now using an old version of zip, (but I get the same results with 2.32)&lt;BR /&gt;&lt;BR /&gt;$ zip &lt;BR /&gt;Copyright (C) 1990-1997 Mark Adler, Richard B. Wales, Jean-loup Gailly,&lt;BR /&gt;Onno van der Linden, Christian Spieler and Igor Mandrichenko.&lt;BR /&gt;Type 'zip "-L"' for software license.&lt;BR /&gt;Zip 2.2 (November 3rd 1997). Usage: zip=="$disk:[dir]zip.exe"&lt;BR /&gt;zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]&lt;BR /&gt;  The default action is to add or replace zipfile entries from list, which&lt;BR /&gt;  can include the special name - to compress standard input.&lt;BR /&gt;  If zipfile and list are omitted, zip compresses stdin to stdout.&lt;BR /&gt;  -f   freshen: only changed files  -u   update: only changed or new files&lt;BR /&gt;  -d   delete entries in zipfile    -m   move into zipfile (delete files)&lt;BR /&gt;  -R   recurse into directories     -j   junk (don't record) directory names&lt;BR /&gt;  -0   store only                   -l   convert LF to CR LF (-ll CR LF to LF)&lt;BR /&gt;  -1   compress faster              -9   compress better&lt;BR /&gt;  -q   quiet operation              -v   verbose operation/print version info&lt;BR /&gt;  -c   add one-line comments        -z   add zipfile comment&lt;BR /&gt;  -@   read names from stdin        -o   make zipfile as old as latest entry&lt;BR /&gt;  -x   exclude the following names  -i   include only the following names&lt;BR /&gt; "-F"  fix zipfile("-FF" try harder) "-D"  do not add directory entries&lt;BR /&gt; "-A"  adjust self-extracting exe  "-J"  junk zipfile prefix (unzipsfx)&lt;BR /&gt; "-T"  test zipfile integrity      "-X"  eXclude eXtra file attributes&lt;BR /&gt; "-V"  save VMS file attributes     -w   append version number to stored name&lt;BR /&gt;  -e   encrypt                      -n   don't compress these suffixes&lt;BR /&gt;$ zip vfc vfc.dat&lt;BR /&gt;  adding: VFC.DAT (deflated 51%)&lt;BR /&gt;$ zip -l vfc-l vfc.dat  ! that's a lowercase L to convert LF to CR LF&lt;BR /&gt;  adding: VFC.DAT (deflated 57%)&lt;BR /&gt;$ &lt;BR /&gt;$ zip232&lt;BR /&gt;Copyright (c) 1990-2006 Info-ZIP - Type 'zip "-L"' for software license.&lt;BR /&gt;Zip 2.32 (June 19th 2006). Usage: zip=="$disk:[dir]zip.exe"&lt;BR /&gt;zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]&lt;BR /&gt;  The default action is to add or replace zipfile entries from list, which&lt;BR /&gt;  can include the special name - to compress standard input.&lt;BR /&gt;  If zipfile and list are omitted, zip compresses stdin to stdout.&lt;BR /&gt;  -f   freshen: only changed files  -u   update: only changed or new files&lt;BR /&gt;  -d   delete entries in zipfile    -m   move into zipfile (delete files)&lt;BR /&gt;  -r   recurse into directories     -j   junk (don't record) directory names&lt;BR /&gt;  -0   store only                   -l    (-ll CR LF to LF)&lt;BR /&gt;  -1   compress faster              -9   compress better&lt;BR /&gt;  -q   quiet operation              -v   verbose operation/print version info&lt;BR /&gt;  -c   add one-line comments        -z   add zipfile comment&lt;BR /&gt;  -@   read names from stdin        -o   make zipfile as old as latest entry&lt;BR /&gt;  -x   exclude the following names  -i   include only the following names&lt;BR /&gt; "-F"  fix zipfile("-FF" try harder) "-D"  do not add directory entries&lt;BR /&gt; "-A"  adjust self-extracting exe  "-J"  junk zipfile prefix (unzipsfx)&lt;BR /&gt; "-T"  test zipfile integrity      "-X"  eXclude eXtra file attributes&lt;BR /&gt; "-V"  save VMS file attributes ("-VV" also save allocated blocks past EOF)&lt;BR /&gt; "-R"  PKZIP recursion (see manual) -w   append version number to stored name&lt;BR /&gt;  -e   encrypt                      -n   don't compress these suffixes&lt;BR /&gt;$ zip232 vfc232 vfc.dat&lt;BR /&gt;  adding: VFC.DAT (deflated 51%)&lt;BR /&gt;$ zip232 -l vfc232-l vfc.dat&lt;BR /&gt;  adding: VFC.DAT (deflated 57%)&lt;BR /&gt;$ backup/comp vfc.zip vfc232.zip&lt;BR /&gt;%BACKUP-E-VERIFYERR, verification error for block 1 of ROOT$USERS:[JON]VFC232.ZIP;1&lt;BR /&gt;$ backup/comp vfc-l.zip vfc232-l.zip&lt;BR /&gt;%BACKUP-E-VERIFYERR, verification error for block 1 of ROOT$USERS:[JON]VFC232-L.ZIP;1&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;Note:  I did not use the "-V" switch, and that shouldn't be used when creating zip files that are going to be used on Windows.&lt;BR /&gt;&lt;BR /&gt;Now from XP ftp the vfc*.zip files from VMS using binary mode transfer, and unzip using winrar 3.20 (what I use on Windows) into unique folders.&lt;BR /&gt;&lt;BR /&gt;The vfc.zip and vfc232.zip create files that notepad can't deal with (everything on one line), but the vfc-l.zip and vfc232-l.zip both create text files that notepad has not problem with.&lt;BR /&gt;&lt;BR /&gt;And Metapad can deal with all the vfc.dat files, it shows the files created without -l as being UNIX format.&lt;BR /&gt;&lt;BR /&gt;My point is that I am not able to reproduce the problem with VFC files.  If there are problems, then it was due to transferring the files or a different application unzipping the files.  I even tried using the unzip built into XP, right click on .zip file, and select explore, then drag a copy to another folder.  I got identical files to what winrar 3.20 extracted.&lt;BR /&gt;&lt;BR /&gt;I do recommend using zip232, but I didn't see any difference in behavior for this particular test.&lt;BR /&gt;&lt;BR /&gt;I am not saying that converting to stream-lf is bad, it just isn't necessary (at least in the case I tried).&lt;BR /&gt;&lt;BR /&gt;If the files are text files, and you want the files to work on Windows, it is more important to use the zip "-l" switch to convert LF to CR LF than to convert to stream files, at least that is my experience.&lt;BR /&gt;&lt;BR /&gt;Getting a subset of the files is accomplished best with the -@ as first mentioned by Dave, and embellished with pipe by Hein.  Note that any directory qualifiers can be used, so you can limit the files matched with things like creation date.&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;&lt;/NONE&gt;&lt;/NONE&gt;&lt;/NONE&gt;&lt;/NONE&gt;&lt;/NONE&gt;&lt;/NO&gt;</description>
      <pubDate>Mon, 10 Sep 2007 20:00:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068264#M13327</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-09-10T20:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068265#M13328</link>
      <description>Interesting.  This might be something zip or the CRTL or such has remediated; I had no end of problems with low-level record structures when dealing with mixed platforms.&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Sep 2007 20:05:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068265#M13328</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-09-10T20:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068266#M13329</link>
      <description>&amp;gt; and I will transfer the zip file to windows&lt;BR /&gt;&amp;gt; xp, so $ zip/VMS/ should be used?&lt;BR /&gt;&lt;BR /&gt;ZIP /VMS (zip -V) is useful only when the&lt;BR /&gt;destination is VMS, but it should be harmless&lt;BR /&gt;with Zip 2.32 (or later).&lt;BR /&gt;&lt;BR /&gt;&amp;gt; running environment: openvms 8.2 I64, zip 2.3 &lt;BR /&gt;&lt;BR /&gt;Gack.  Do what he said:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Please upgrade your version of zip, too.&lt;BR /&gt;&amp;gt; You will want to use zip 2.32. There's a&lt;BR /&gt;&amp;gt; copy of this and of unzip 5.54 [...]&lt;BR /&gt;&lt;BR /&gt;except that UnZip 5.52 is the latest released&lt;BR /&gt;version.  If you need large-file (&amp;gt;2GB)&lt;BR /&gt;support, you'll need not-yet-released&lt;BR /&gt;versions.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Note: I did not use the "-V" switch, and&lt;BR /&gt;&amp;gt; that shouldn't be used when creating zip&lt;BR /&gt;&amp;gt; files that are going to be used on Windows.&lt;BR /&gt;&lt;BR /&gt;As I said, useless but harmless, nowadays.&lt;BR /&gt;(With Zip 2.3, it's a hazard.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Interesting. This might be something zip or&lt;BR /&gt;&amp;gt; the CRTL or such has remediated; I had no&lt;BR /&gt;&amp;gt; end of problems with low-level record&lt;BR /&gt;&amp;gt; structures when dealing with mixed&lt;BR /&gt;&amp;gt; platforms.&lt;BR /&gt;&lt;BR /&gt;Files recognized by Zip as text are marked as&lt;BR /&gt;such in the archive, and UnZip (see "-a") can&lt;BR /&gt;consider this.  On non-VMS systems, UnZip is&lt;BR /&gt;normally built with VMS_TEXT_CONV enabled,&lt;BR /&gt;which is intended to add the ability to&lt;BR /&gt;decode VMS-specific text-file formats.&lt;BR /&gt;Everything's complicated.</description>
      <pubDate>Mon, 10 Sep 2007 23:04:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068266#M13329</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-09-10T23:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068267#M13330</link>
      <description>After Steven Schweda's note about "-V" being harmless after Zip 2.32 or later, I zipped the vfc.dat file using the command:&lt;BR /&gt;&lt;BR /&gt;$ zip232 "-V" vfc232-v vfc.dat&lt;BR /&gt;  adding: VFC.DAT (deflated 73%)&lt;BR /&gt;$ zip232 "-Vl" vfc232-vl vfc.dat&lt;BR /&gt;&lt;BR /&gt;zip error: Invalid command arguments (can't use -V with -l or -ll)&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;Note that when you use "-V" it apparently changes the way the files are read/processed by zip, since it won't allow you to use anything that would affect the record delineation, and to me that makes sense, since you are asking it to preserve the VMS attributes.&lt;BR /&gt;&lt;BR /&gt;I don't have info-zip's unzip on my PC, so it is possible that info-zip's unzip program has knowledge of how to interpret the stored VMS attributes and create a usable file for Windows.  The unzip built into XP and the unzip built into WinRAR 3.20 are able to extract the file from vfc232-v.zip, but it isn't the same as what gets unzipped from vfc232-l.  It is larger, 602 bytes vs. 392 bytes.&lt;BR /&gt;&lt;BR /&gt;Here is where Hoff's recommendation to convert to stream format probably would make a difference, although I did not test that.&lt;BR /&gt;&lt;BR /&gt;My point is that if you are targeting windows as the destination, I can see no advantage to using zip "-V" and I can see disadvantages of doing so, even if using zip 2.32, since at a minimum you will need a version of unzip that knows how to properly deal with the zip file produced with "-V".&lt;BR /&gt;&lt;BR /&gt;I have attached a file zipped on my windows PC that has the following contents:  I had to ftp it to VMS so I could get a listing, since I don't have info-zip unzip on my PC.&lt;BR /&gt;&lt;BR /&gt; unzip -v vmsvfc.zip&lt;BR /&gt;Archive:  ROOT$USERS:[JON]VMSVFC.ZIP;1&lt;BR /&gt; Length   Method    Size  Ratio   Date   Time   CRC-32    Name&lt;BR /&gt;--------  ------  ------- -----   ----   ----   ------    ----&lt;BR /&gt;       0  Stored        0   0%  09-11-07 08:42  00000000  VMSVFC/&lt;BR /&gt;       0  Stored        0   0%  09-10-07 20:01  00000000  VMSVFC/VFC/&lt;BR /&gt;     292  Defl:N      142  51%  09-10-07 19:52  678bf1dc  VMSVFC/VFC/vfc.dat&lt;BR /&gt;       0  Stored        0   0%  09-10-07 20:01  00000000  VMSVFC/VFC-L/&lt;BR /&gt;     392  Defl:N      167  57%  09-10-07 19:52  35e4e82f  VMSVFC/VFC-L/vfc.dat&lt;BR /&gt;     297  Defl:N      242  19%  09-10-07 20:15  8b221f6c  VMSVFC/VFC-L.ZIP&lt;BR /&gt;     272  Defl:N      229  16%  09-10-07 20:15  0681c3bc  VMSVFC/vfc.zip&lt;BR /&gt;       0  Stored        0   0%  09-10-07 20:15  00000000  VMSVFC/VFC232/&lt;BR /&gt;     292  Defl:N      142  51%  09-10-07 19:52  678bf1dc  VMSVFC/VFC232/vfc.dat&lt;BR /&gt;       0  Stored        0   0%  09-10-07 20:15  00000000  VMSVFC/VFC232-L/&lt;BR /&gt;     392  Defl:N      167  57%  09-10-07 19:52  35e4e82f  VMSVFC/VFC232-L/vfc.dat&lt;BR /&gt;     297  Defl:N      242  19%  09-10-07 20:15  a6596ab4  VMSVFC/VFC232-L.ZIP&lt;BR /&gt;       0  Stored        0   0%  09-11-07 08:22  00000000  VMSVFC/VFC232-V/&lt;BR /&gt;     602  Defl:N      162  73%  09-10-07 19:52  a8b729f1  VMSVFC/VFC232-V/vfc.dat&lt;BR /&gt;     536  Defl:N      295  45%  09-11-07 08:12  4c0e4cec  VMSVFC/VFC232-V.ZIP&lt;BR /&gt;     272  Defl:N      229  16%  09-10-07 20:15  4eaf440a  VMSVFC/VFC232.ZIP&lt;BR /&gt;    1159  Defl:N      453  61%  09-11-07 08:42  88f75f49  VMSVFC/VMSVFC.md5&lt;BR /&gt;     816  Defl:N      291  64%  09-11-07 08:42  0b2c71f4  VMSVFC/VMSVFC.sfv&lt;BR /&gt;--------          -------  ---                            -------&lt;BR /&gt;    5619             2761  51%                            18 files&lt;BR /&gt;$ &lt;BR /&gt;&lt;BR /&gt;Note the size of the unzipped files.  292 (with LF) 392 (with CR LF) 602 (from "-V")&lt;BR /&gt;&lt;BR /&gt;So my recommendation stands:  If you are zipping files on VMS to be read on Windows as text files, use zip -l on VMS, not zip "-V".&lt;BR /&gt;&lt;BR /&gt;Steven Schweda, can you verify that you can unzip the vfc232.zip file on a windows box using info-zip unzip, and have it produce a file that is equivalent to the 392 byte version of vfc.dat?  I.e. one that can be opened and displayed in Notepad.  And what the correct switches to use are?  (I would guess unzip -a vfc232.zip).&lt;BR /&gt;&lt;BR /&gt;And I do agree with "Everything's complicated."&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Sep 2007 08:26:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068267#M13330</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-09-11T08:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068268#M13331</link>
      <description>&amp;gt; [...] can you verify that you can unzip the&lt;BR /&gt;&amp;gt; vfc232.zip file on a windows box using&lt;BR /&gt;&amp;gt; info-zip unzip, and have it produce a file&lt;BR /&gt;&amp;gt; that is equivalent to the 392 byte version&lt;BR /&gt;&amp;gt; of vfc.dat? I.e. one that can be opened and&lt;BR /&gt;&amp;gt; displayed in Notepad. And what the correct&lt;BR /&gt;&amp;gt; switches to use are? (I would guess&lt;BR /&gt;&amp;gt; unzip -a vfc232.zip).&lt;BR /&gt;&lt;BR /&gt;I try my best to avoid Windows, and I succeed&lt;BR /&gt;pretty well (at least at home), so I can't&lt;BR /&gt;run that test.  I'd guess "unzip -a", too.&lt;BR /&gt;&lt;BR /&gt;I dimly recall getting a Kermit source kit a&lt;BR /&gt;while ago,as a Zip archive, which initially&lt;BR /&gt;got expanded into files with CR-LF line&lt;BR /&gt;endings.  I was just starting to get upset&lt;BR /&gt;when I stumbled across the instruction to use&lt;BR /&gt;"unzip -a" to extract the stuff, and that&lt;BR /&gt;solved the problem.  So, it did seem to&lt;BR /&gt;handle a case going in the other direction&lt;BR /&gt;(MSDOS-Windows to VMS).  The same general&lt;BR /&gt;feature should work on a UNIX[-like] system,&lt;BR /&gt;too, except that the result would be&lt;BR /&gt;LF-delimited instead of CR-LF-.  Look for&lt;BR /&gt;VMS_TEXT_CONV in the "unzip -v" output.</description>
      <pubDate>Tue, 11 Sep 2007 08:56:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068268#M13331</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-09-11T08:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068269#M13332</link>
      <description>thank all,&lt;BR /&gt;&lt;BR /&gt;I have tried to zip my files up, it's just fine by using wildcard and space as a delimiter.&lt;BR /&gt;&lt;BR /&gt;And the -l works for the conversion of the files, but it's just if I don't use it, since it will be resorted after imported to excel, no matter if it's LF or CR LF.&lt;BR /&gt;&lt;BR /&gt;Now, I still can't figure out how to use DCL command to compress files with continual serials in their filenames.&lt;BR /&gt;i.e. compress doc300.dat to doc320.dat in a folder that contains doc001.dat to doc999.dat&lt;BR /&gt;&lt;BR /&gt;I'm just a newbie in this aspect...</description>
      <pubDate>Tue, 11 Sep 2007 09:28:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068269#M13332</guid>
      <dc:creator>blaster2007</dc:creator>
      <dc:date>2007-09-11T09:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068270#M13333</link>
      <description>Using v2.3 use the /BATCH qualifier (not sure what the dash (-) character is)&lt;BR /&gt;&lt;BR /&gt;$ DIR FILE*.EXT* /NOHEAD/NOTRAIL/OUT=FOO.LIS&lt;BR /&gt;$ ZIP/VMS ARCHIVE.ZIP /BATCH=FOO.LIS&lt;BR /&gt;&lt;BR /&gt;Use /VMS incase you ever need to restore to a VMS system.&lt;BR /&gt;&lt;BR /&gt;The issue I have found with ADDING files to an archive is that ZIP:&lt;BR /&gt;1. makes a copy the archive&lt;BR /&gt;2. adds the new file to the copy&lt;BR /&gt;3. deletes the old archive&lt;BR /&gt;4. copies the updated archive to the old archive name/location&lt;BR /&gt;&lt;BR /&gt;All this duplication is not to noticable when the archive is small.  When the archive gets large copying large archive files can take some time.  Consider using /TEMP=&lt;ANOTHER device=""&gt; too.&lt;/ANOTHER&gt;</description>
      <pubDate>Tue, 11 Sep 2007 09:32:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068270#M13333</guid>
      <dc:creator>O'Malley</dc:creator>
      <dc:date>2007-09-11T09:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068271#M13334</link>
      <description>blaster,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;i.e. compress doc300.dat to doc320.dat in a folder that contains doc001.dat to doc999.dat&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now look at O'Malley's solution:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;$ DIR FILE*.EXT* /NOHEAD/NOTRAIL/OUT=FOO.LIS&lt;BR /&gt;$ ZIP/VMS ARCHIVE.ZIP /BATCH=FOO.LIS&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;Slightly modify it:&lt;BR /&gt;&lt;BR /&gt;$ DIR doc3%%.DAT /.....  etc&lt;BR /&gt;&lt;BR /&gt;... For this, and MANY more (nearly all) VMS quetions, try &lt;BR /&gt;$ HELP     or&lt;BR /&gt;$ HELP subject, eg&lt;BR /&gt;$ HELP DIR&lt;BR /&gt;&lt;BR /&gt;and when you have found something that might look promising, then look at the example(s), and 9 out of 10 your solution should be clear.&lt;BR /&gt;&lt;BR /&gt;And if not... you now have found us.&lt;BR /&gt;&lt;BR /&gt;Have success, have fun!&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Sep 2007 09:55:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068271#M13334</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2007-09-11T09:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068272#M13335</link>
      <description>One way to get only doc300.dat through doc320.dat is the following:&lt;BR /&gt;&lt;BR /&gt;$ pipe dir/col=1/nohead/notrail doc30%.dat;,doc31%.dat;,doc320.dat; | zip -@j doc.zip&lt;BR /&gt;&lt;BR /&gt;The "j" tells zip to ignore the directory, and is only significant if the you have your default directory set to something other than the location the doc files reside.&lt;BR /&gt;&lt;BR /&gt;For example, if the files with the doc files is protected against writing, and there was a logical name "doc" that had the location of the doc files, you could use:&lt;BR /&gt;&lt;BR /&gt;$ pipe dir/col=1/nohead/notrail doc:doc30%.dat;,doc:doc31%.dat;,doc:doc320.dat; | zip -@j doc.zip&lt;BR /&gt; &lt;BR /&gt;Alternatively, you could use directory to get a listing of all the files with 3 character names that start with 3, and then edit that file to eliminate all the ones you are not interested in, and use that list with wither the /bat or piping the output of type into zip -@.&lt;BR /&gt;&lt;BR /&gt;$ dir/nohead/notrai doc:doc3%%.dat;/out=tmp.lis&lt;BR /&gt;$ edit tmp.lis ! remove all non-wanted files&lt;BR /&gt;$ pipe type tmp.lis | zip -@j doc.zip&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Sep 2007 10:06:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068272#M13335</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-09-11T10:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068273#M13336</link>
      <description>Thank all, again.&lt;BR /&gt;I think the problem is fixed here.&lt;BR /&gt;&lt;BR /&gt;yeah, finally, I found u Guys.&lt;BR /&gt;It's just a nightmare that nobody in the workplace know how to work with the machine.</description>
      <pubDate>Tue, 11 Sep 2007 10:26:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068273#M13336</guid>
      <dc:creator>blaster2007</dc:creator>
      <dc:date>2007-09-11T10:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068274#M13337</link>
      <description>I'll tell you one more secret about OpenVMS.&lt;BR /&gt;It's not a secret really, just little known and little used.&lt;BR /&gt;The essential command being SET FILE /ENTER&lt;BR /&gt;Check it with help. &lt;BR /&gt;&lt;BR /&gt;it creates an ALIAS for the file ON THE SAME DISK.&lt;BR /&gt;A little like a Unix hard link, but watch out, a DELETE will delete the file, not just the link. To remove the link use SET FILE/REMOVE. Obviously this delete danger is part of the reason it is little used.&lt;BR /&gt;&lt;BR /&gt;Anyway, You can use it to readily create a collection of files to be ZIPped, or PRINTed, or FTPed, or whatever other processing may be needed on a collection.&lt;BR /&gt;&lt;BR /&gt;Here it goes...&lt;BR /&gt;&lt;BR /&gt;$CREATE/DIR [.TO_BE_ZIPPED]&lt;BR /&gt;$SET FILE/ENT= [.TO_BE_ZIPPED] doc30%.dat;&lt;BR /&gt;$SET FILE/ENT= [.TO_BE_ZIPPED] doc30%.dat;, doc320&lt;BR /&gt;$! ... and more as needed...&lt;BR /&gt;$DIR [.TO_BE_ZIPPED]  ! Check&lt;BR /&gt;$ZIP test [.TO_BE_ZIPPED]*.*&lt;BR /&gt;$!Main Cleanup&lt;BR /&gt;$SET FILE/REMOVE [.TO_BE_ZIPPED]*.*.*&lt;BR /&gt;$!Optional further cleanup&lt;BR /&gt;$SET FILE/PROT TO_BE_ZIPPED.DIR ! Un-protect&lt;BR /&gt;$DELETE TO_BE_ZIPPED.DIR.&lt;BR /&gt;&lt;BR /&gt;The whole sequence is relatively efficient as it really only manipulates a single file: TO_BE_ZIPPED.DIR. It does not copy data or crerate other files.&lt;BR /&gt;&lt;BR /&gt;Alternative cleanup for those who like to live with privs:&lt;BR /&gt;$SET FILE/NODIR TO_BE_ZIPPED.DIR.&lt;BR /&gt;$DELETE TO_BE_ZIPPED.DIR.  ! Poof&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Sep 2007 10:53:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068274#M13337</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-09-11T10:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068275#M13338</link>
      <description>should it be $SET FILE/REMOVE [.TO_BE_ZIPPED]*.*,*&lt;BR /&gt;instead of $SET FILE/REMOVE [.TO_BE_ZIPPED]*.*.* ?&lt;BR /&gt;&lt;BR /&gt;it's nice to process big files, but it's so dangerous that if the cleanup step is forgot to run.</description>
      <pubDate>Tue, 11 Sep 2007 11:22:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068275#M13338</guid>
      <dc:creator>blaster2007</dc:creator>
      <dc:date>2007-09-11T11:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068276#M13339</link>
      <description>should it be $SET FILE/REMOVE [.TO_BE_ZIPPED]*.*,*&lt;BR /&gt;instead of $SET FILE/REMOVE [.TO_BE_ZIPPED]*.*.* ?&lt;BR /&gt;&lt;BR /&gt;Well, you mean "*.*;*", that is with a semi-colon, not a comman, but NO.&lt;BR /&gt;That's an other little known secret I thought I'd toss in.&lt;BR /&gt;I'm glad you noticed :-).&lt;BR /&gt;&lt;BR /&gt;You can use a "." as seperator between file-type and file-version in most cases.&lt;BR /&gt;&lt;BR /&gt;While I do not encourage that usage in formal scripts, I personally do use it a lot to just delete the last version of a file. It types easier: $DELETE x.y.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; it's nice to process big files, but it's so dangerous that if the cleanup step is forgot to run.&lt;BR /&gt;&lt;BR /&gt;Well, the extra directory with aliases just sits there. No harm no foul :-).&lt;BR /&gt;&lt;BR /&gt;Admittedly, depending on the exact backup tool and method deployed thay may become real files on a backup.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Sep 2007 12:05:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068276#M13339</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-09-11T12:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068277#M13340</link>
      <description>Blaster,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;should it be $SET FILE/REMOVE [.TO_BE_ZIPPED]*.*,*&lt;BR /&gt;instead of $SET FILE/REMOVE [.TO_BE_ZIPPED]*.*.* ?&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;Well, the second ( period or full stop as separator) works, and is is (at least to me) easier typing.&lt;BR /&gt;But "officially", the separator between file type &amp;amp; version# is the semicolon ( " ; " )&lt;BR /&gt;(This is also a demonstration of the unwise choice of display in these forums. In your first command you used a comma ( " , " ) as  separator, and THAT would generate a syntax error.&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Sep 2007 12:10:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068277#M13340</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2007-09-11T12:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to zip multiple files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068278#M13341</link>
      <description>Hah! Beat you to it Jan! :-).&lt;BR /&gt;&lt;BR /&gt;Just kidding. &lt;BR /&gt;&lt;BR /&gt;I just happened to be doing my lunch break tour of the forums/c.o.v and such. :-).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; (This is also a demonstration of the unwise choice of display in these forums. &lt;BR /&gt;&lt;BR /&gt;Yeah... really hard to spot the comma/semi in the read display font. Nice and clear in the reply window and/or pasted to a terminal.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; In your first command you used a comma ( " , " ) as separator, and THAT would generate a syntax error.&lt;BR /&gt;&lt;BR /&gt;well, not a syntax error. It is valid, but useless as it fails to provide the explicit version number needed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Sep 2007 12:17:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-zip-multiple-files/m-p/4068278#M13341</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-09-11T12:17:47Z</dc:date>
    </item>
  </channel>
</rss>

