<?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: VMS save sets and FTP in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049223#M60949</link>
    <description>The SET FILE/ATTRIB command worked for me (I will assign points once I find out if it works for my customer).&lt;BR /&gt;&lt;BR /&gt;I did try the zip utility program but could not get this to work.  This might be a better long term solution, so I am still interested in it.  I got the following when I tried to zip: &lt;BR /&gt;&lt;BR /&gt;$ zip -V asn1cvms.zip spe51$dka0:[asn1c]&lt;BR /&gt;        zip warning: name not matched: spe51$dka0:[asn1c]&lt;BR /&gt;&lt;BR /&gt;zip error: Nothing to do! (SPE51$DKA0:[000000]ASN1CVMS.ZIP;)&lt;BR /&gt;&lt;BR /&gt;Anyone have any ideas on this?&lt;BR /&gt;&lt;BR /&gt;Regards, &lt;BR /&gt;&lt;BR /&gt;Ed&lt;BR /&gt;</description>
    <pubDate>Mon, 18 Aug 2003 14:09:13 GMT</pubDate>
    <dc:creator>Ed Day</dc:creator>
    <dc:date>2003-08-18T14:09:13Z</dc:date>
    <item>
      <title>VMS save sets and FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049216#M60942</link>
      <description>I recently backed up a directory I created in VMS to send to a customer.  I tested the save set on the VMS machine and it worked fine.  But when I FTP'd it to the customer, he reported he could not load it.  I went back and tested and found that, sure enough, the original file was corrupted.  In checking further, I did a dir/full on the original file and the file I FTP'd back and found the record formats were different: &lt;BR /&gt;&lt;BR /&gt;Original: Fixed length 32256 byte records&lt;BR /&gt;&lt;BR /&gt;FTP's: Fixed length 512 byte records&lt;BR /&gt;&lt;BR /&gt;Id there any way to keep the record format from being altered? &lt;BR /&gt;&lt;BR /&gt;Regards, &lt;BR /&gt;&lt;BR /&gt;Ed Day&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Aug 2003 15:19:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049216#M60942</guid>
      <dc:creator>Ed Day</dc:creator>
      <dc:date>2003-08-14T15:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: VMS save sets and FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049217#M60943</link>
      <description>If you are using one of the TCP/IP stacks from Process Software, then yes, you can preserve VMS file structure through an ftp operation.  I forget the exact qualifier but it might be /STRUVMS or similar.&lt;BR /&gt;&lt;BR /&gt;The easiest way in any case is to do a zip -"V" to the save set before transfer and have your customer unzip it on the other end.  This preserves the VMS file attributes inside the zip archive.  It's possible to create a self-extracting zip if the customer can't be relied on to have unzip handy.&lt;BR /&gt;&lt;BR /&gt;As long as the save set record lengths are a multiple of 512 (and you can control this on the backup command, going as low as 2048 I think), then you may be able to twiddle the file attributes on the receiving end:&lt;BR /&gt;&lt;BR /&gt;$ set file/attr=lrl=32256&lt;BR /&gt;&lt;BR /&gt;There are probably a dozen other ways to skin this cat but those should get you started.</description>
      <pubDate>Thu, 14 Aug 2003 15:50:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049217#M60943</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2003-08-14T15:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: VMS save sets and FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049218#M60944</link>
      <description>&lt;BR /&gt;Following is a modified version of a command file that was on one of the freeware disks.  It will take the saveset as the P1 paramater, look at the first record to find the block size and set the file accordingly.  &lt;BR /&gt;&lt;BR /&gt;(note:  the file wrapped when I cut/pasted it)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$! RESET_BACKUP_SAVESET_ATTRIBUTES.COM&lt;BR /&gt;$!&lt;BR /&gt;$! P1  is the specification of the BACKUP saveset&lt;BR /&gt;$!&lt;BR /&gt;$! This procedure resets the record format and record&lt;BR /&gt;$! length attributes of a BACKUP saveset -- savesets&lt;BR /&gt;$! can get "broken" during certain sorts of file&lt;BR /&gt;$! transfers -- such as FTP.  This procedure reads the&lt;BR /&gt;$! (undocumented) saveset record attributes directly&lt;BR /&gt;$! out of the target file.&lt;BR /&gt;$!&lt;BR /&gt;$! First render the saveset readable, and implicitly&lt;BR /&gt;$! check that the file exists.&lt;BR /&gt;$!&lt;BR /&gt;$! The origin of this utility is from the [000tools] freeware directory&lt;BR /&gt;$! of VMS software.&lt;BR /&gt;$!&lt;BR /&gt;$! History:&lt;BR /&gt;$!      06/27/03 - sjb - Added check for P1&lt;BR /&gt;$!&lt;BR /&gt;$!&lt;BR /&gt;$ If "''p1'" .eqs. ""&lt;BR /&gt;$    then&lt;BR /&gt;$       write sys$output "A saveset filename is required as the P1 Paramater"&lt;BR /&gt;$       exit&lt;BR /&gt;$ endif&lt;BR /&gt;$!&lt;BR /&gt;$!&lt;BR /&gt;$ Set File -&lt;BR /&gt;    /Attributes=(RFM:FIX,MRS:512,LRL=512,ORG=SEQ,RAT=NONE) -&lt;BR /&gt;    'p1'&lt;BR /&gt;$&lt;BR /&gt;$ Open/Error=whoops/Read BckSaveset 'p1'&lt;BR /&gt;$ Read/Error=whoops/End=whoops BckSaveset Record&lt;BR /&gt;$ Close/Nolog BckSaveset&lt;BR /&gt;$&lt;BR /&gt;$! Find the blocksize from within the record...&lt;BR /&gt;$&lt;BR /&gt;$ BlockSize = 0&lt;BR /&gt;$ BBH_L_BLOCKSIZE = %x28*8&lt;BR /&gt;$ BlockSize = F$CVUI(BBH_L_BLOCKSIZE, 32, Record)&lt;BR /&gt;$ If BlockSize .lt. 2048 .or. BlockSize .gt. 65535&lt;BR /&gt;$ Then&lt;BR /&gt;$   Write sys$output "Unexpected block size"&lt;BR /&gt;$   Goto whoops&lt;BR /&gt;$ Else&lt;BR /&gt;$   Set File /Attributes=(RFM:FIX,LRL='BlockSize', -&lt;BR /&gt;       MRS='BlockSize',RAT=none) -&lt;BR /&gt;       'p1'&lt;BR /&gt;$   Write sys$output "''p1' has been corrected"&lt;BR /&gt;$ endif&lt;BR /&gt;$ exit&lt;BR /&gt;$WHOOPS:&lt;BR /&gt;$ Write sys$output "Error"&lt;BR /&gt;$ exit</description>
      <pubDate>Thu, 14 Aug 2003 17:56:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049218#M60944</guid>
      <dc:creator>Scott Belviso</dc:creator>
      <dc:date>2003-08-14T17:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: VMS save sets and FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049219#M60945</link>
      <description>When you FTP'd the file did you use binary transfer? That should keep the format</description>
      <pubDate>Fri, 15 Aug 2003 12:44:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049219#M60945</guid>
      <dc:creator>Malcolm Robertson</dc:creator>
      <dc:date>2003-08-15T12:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: VMS save sets and FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049220#M60946</link>
      <description>&lt;P data-unlink="true"&gt;If the directory is of any size at all, then zipping the directory is going to speed up the transfer if nothing else. And binary mode in FTP sends a .ZIP cleanly.&lt;BR /&gt;&lt;BR /&gt;Personally, I've had excellent luck with Info-Zip over the years (&lt;STRIKE&gt;http://www.info-zip.morg/pub/infozip/&lt;/STRIKE&gt;).&amp;nbsp; The price is right (freeware), and the command is identical regardless of what platform its run on. I *think* the latest versions are on the VMS Freeware CDs.&lt;BR /&gt;&lt;BR /&gt;As said above, use the VMS "-V" option....&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;[Moderator edit: The above link is no longer valid.]&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 06:11:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049220#M60946</guid>
      <dc:creator>Sheldon Smith</dc:creator>
      <dc:date>2025-04-29T06:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: VMS save sets and FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049221#M60947</link>
      <description>Thanks for the answers thus far.  To Malcom, I can confirm that the transfers were done in binary mode.  I will try the freeware ZIP utility and report back. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Aug 2003 17:00:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049221#M60947</guid>
      <dc:creator>Ed Day</dc:creator>
      <dc:date>2003-08-15T17:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: VMS save sets and FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049222#M60948</link>
      <description>While I wholeheartedly agree with the recommendations for Zip, for a one time effort&lt;BR /&gt;the following command should rescue the &lt;BR /&gt;saveset:&lt;BR /&gt;&lt;BR /&gt; SET FILE/ATTRIB=(lrl:32256,mrs:32256,rfm:fix) &lt;BR /&gt;&lt;BR /&gt;This does assume you have a version of VMS that supports set file :-)</description>
      <pubDate>Sun, 17 Aug 2003 01:42:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049222#M60948</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2003-08-17T01:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: VMS save sets and FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049223#M60949</link>
      <description>The SET FILE/ATTRIB command worked for me (I will assign points once I find out if it works for my customer).&lt;BR /&gt;&lt;BR /&gt;I did try the zip utility program but could not get this to work.  This might be a better long term solution, so I am still interested in it.  I got the following when I tried to zip: &lt;BR /&gt;&lt;BR /&gt;$ zip -V asn1cvms.zip spe51$dka0:[asn1c]&lt;BR /&gt;        zip warning: name not matched: spe51$dka0:[asn1c]&lt;BR /&gt;&lt;BR /&gt;zip error: Nothing to do! (SPE51$DKA0:[000000]ASN1CVMS.ZIP;)&lt;BR /&gt;&lt;BR /&gt;Anyone have any ideas on this?&lt;BR /&gt;&lt;BR /&gt;Regards, &lt;BR /&gt;&lt;BR /&gt;Ed&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Aug 2003 14:09:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049223#M60949</guid>
      <dc:creator>Ed Day</dc:creator>
      <dc:date>2003-08-18T14:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: VMS save sets and FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049224#M60950</link>
      <description>You aren't specifying everything zip needs to know.  To pack up a "foo" directory tree do something like:&lt;BR /&gt;&lt;BR /&gt;$ zip -"Vr" foo.zip [.foo]*.*&lt;BR /&gt;&lt;BR /&gt;The double quotes are necessary unless you are on a very recent version of VMS and have taken steps to preserve case in command line arguments.</description>
      <pubDate>Mon, 18 Aug 2003 16:42:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049224#M60950</guid>
      <dc:creator>Craig A Berry</dc:creator>
      <dc:date>2003-08-18T16:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: VMS save sets and FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049225#M60951</link>
      <description>To further clarify, the *.*;* for the filenames is also required.  I discovered this recently on my own.  It does not default to all files in the directory.</description>
      <pubDate>Mon, 18 Aug 2003 18:22:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049225#M60951</guid>
      <dc:creator>Dale A. Marcy</dc:creator>
      <dc:date>2003-08-18T18:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: VMS save sets and FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049226#M60952</link>
      <description>I was a little over zealous with my *'s.  You probably only want *.* unless you include the "-w" option.</description>
      <pubDate>Mon, 18 Aug 2003 19:05:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049226#M60952</guid>
      <dc:creator>Dale A. Marcy</dc:creator>
      <dc:date>2003-08-18T19:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: VMS save sets and FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049227#M60953</link>
      <description>Just so it does not get lost in all the *'s and &lt;BR /&gt;;'s ;-)&lt;BR /&gt;&lt;BR /&gt;The important part in the previous message are the quotation marks around the "-V" The captial &lt;BR /&gt;V option tells Zip to preserve VMS fileattributes. The need to quote the option comes from the way VMS handles these. If you just use zip -V first DCL will capitalize the argument (which would not hurt in thise case) and then the C-RTL turns it into a lower case v, i.e. what zip gets delivered in argv is a -v (which causes it to print version information).&lt;BR /&gt;&lt;BR /&gt;Also to zip a directory tree you can skip the -r on VMS since &lt;BR /&gt;&lt;BR /&gt;zip foo.zip [...]*.* tends to work fine</description>
      <pubDate>Tue, 19 Aug 2003 00:27:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049227#M60953</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2003-08-19T00:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: VMS save sets and FTP</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049228#M60954</link>
      <description>Thanks to all who answered.  I got both the zip and set file sttributes commands to work.&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Aug 2003 13:40:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/vms-save-sets-and-ftp/m-p/3049228#M60954</guid>
      <dc:creator>Ed Day</dc:creator>
      <dc:date>2003-08-19T13:40:27Z</dc:date>
    </item>
  </channel>
</rss>

