<?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: DCL script to FTP files in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668269#M40290</link>
    <description>&lt;BR /&gt;If three pairs of quotes work when done interactively (ie """Test"""), then you will need more quotes inside the command file. It seems to me that for every command level, another set of quotes gets stripped off.&lt;BR /&gt;&lt;BR /&gt;My two cents.&lt;BR /&gt;</description>
    <pubDate>Fri, 30 Jul 2010 15:00:54 GMT</pubDate>
    <dc:creator>RBrown_1</dc:creator>
    <dc:date>2010-07-30T15:00:54Z</dc:date>
    <item>
      <title>DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668255#M40276</link>
      <description>Morning&lt;BR /&gt;I wonder if anyone could help me out with modifying a small DCL script which FTPs some files to a server?&lt;BR /&gt;We have 8 VAXs which seem to use different FTPs. Some use FTP &amp;amp; some use MULTI FTP as the command to get into the FTP prompt&lt;BR /&gt;&lt;BR /&gt;There is a script which writes commands to a temp file ftpjob.tmp, executes ftpjob.tmp and then deletes it&lt;BR /&gt;&lt;BR /&gt;$       open/write ftpjob ftpjob.tmp&lt;BR /&gt;$       wr ftpjob "$ftp 10.37.2.23 /username=ftp_to_share",-&lt;BR /&gt;                        "/password=""1password23"""&lt;BR /&gt;$       wr ftpjob "cd /VAX/OUT/SHARE/"&lt;BR /&gt;$       wr ftpjob "put ''source_file' ''target_file'"&lt;BR /&gt;$       wr ftpjob "bye"&lt;BR /&gt;$       wr ftpjob "$exit"&lt;BR /&gt;$       close ftpjob&lt;BR /&gt;$       @ftpjob.tmp&lt;BR /&gt;$!      delete ftpjob.tmp;&lt;BR /&gt;&lt;BR /&gt;This works fine on the systems which FTP is accessed by typing FTP&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;However, on the systems where Multi FTP is typed to access FTP (see below) I get Login or Password incorrect errors.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$       open/write ftpjob ftpjob.tmp&lt;BR /&gt;$       wr ftpjob "$multi ftp 10.37.2.23 /username=ftp_legacy_uk_prd",-&lt;BR /&gt;                        "/password=""1pwd4PRDUK"""&lt;BR /&gt;$       wr ftpjob "cd /VAX/OUT/APOLLO/"&lt;BR /&gt;$       wr ftpjob "put ''source_file' ''target_file'"&lt;BR /&gt;$       wr ftpjob "bye"&lt;BR /&gt;$       wr ftpjob "$exit"&lt;BR /&gt;$       close ftpjob&lt;BR /&gt;$       @ftpjob.tmp&lt;BR /&gt;$!      delete ftpjob.tmp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If I manually enter the commands at the prompt I can get in, not really sure what I'm doing wrong here..&lt;BR /&gt;&lt;BR /&gt;Any help gratefully received&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;BM&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jul 2010 09:28:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668255#M40276</guid>
      <dc:creator>ben_moore34</dc:creator>
      <dc:date>2010-07-30T09:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668256#M40277</link>
      <description>This may just be a typo, but in the example you posted, multiftp has a space in it which would lead me to believe that the "multi" is recogniozed as invoking multiftp.  This means that the "ftp" is being recognized or processed rather than the /username etc.&lt;BR /&gt;&lt;BR /&gt;Please note that I do not have multiftp so I can not test this.&lt;BR /&gt;&lt;BR /&gt;Dan</description>
      <pubDate>Fri, 30 Jul 2010 10:11:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668256#M40277</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2010-07-30T10:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668257#M40278</link>
      <description>&lt;!--!*#--&gt;&amp;gt; We have 8 VAXs which seem to use different&lt;BR /&gt;&amp;gt; FTPs. [...]&lt;BR /&gt;&lt;BR /&gt;It might be useful to know something about&lt;BR /&gt;the software here (more than "VAXs").&lt;BR /&gt;&lt;BR /&gt;Is this "MULTI FTP" related to MultiNet?&lt;BR /&gt;&lt;BR /&gt;The DEC/Compaq/HP IP networking package&lt;BR /&gt;should identify itself using a command like:&lt;BR /&gt;&lt;BR /&gt;      tcpip show version&lt;BR /&gt;or:&lt;BR /&gt;      ucx show version&lt;BR /&gt;&lt;BR /&gt;depending on its age.  MultiNet probably has&lt;BR /&gt;something similar, but you may be able to&lt;BR /&gt;find that about as fas as I could.  ("HELP"?)&lt;BR /&gt;&lt;BR /&gt;At a minimum:&lt;BR /&gt;&lt;BR /&gt;      WRITE SYS$OUTPUT F$GETSYI( "VERSION")&lt;BR /&gt;&lt;BR /&gt;Other potentially interesting things:&lt;BR /&gt;&lt;BR /&gt;Did this stuff ever work?  If so, what has&lt;BR /&gt;changed recently?&lt;BR /&gt;&lt;BR /&gt;Are you publishing real passwords here?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; If I manually enter the commands [...]&lt;BR /&gt;&lt;BR /&gt;And what you enter manually is really what's&lt;BR /&gt;in those procedures?  As usual, a transcript&lt;BR /&gt;showing actual commands with their actual&lt;BR /&gt;output can be more helpful than vague&lt;BR /&gt;descriptions and interpretations.&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jul 2010 10:37:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668257#M40278</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-07-30T10:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668258#M40279</link>
      <description>ftp is an ancient abomination of a protocol and being older than IP itself, is inherently hideous around firewalls, and it has the added bonus of transmitting your username and password credentials in cleartext.  All that aside...&lt;BR /&gt;&lt;BR /&gt;If this box is V6.2 or later, you're doing this the hard way.&lt;BR /&gt;&lt;BR /&gt;Use the COPY /FTP command that's available in DCL.&lt;BR /&gt;&lt;BR /&gt;It does symbol substitution.&lt;BR /&gt;&lt;BR /&gt;It does passwords.&lt;BR /&gt;&lt;BR /&gt;It does default directories.&lt;BR /&gt;&lt;BR /&gt;It's trivially easy to use in DCL command procedures, and to substitute symbols within.&lt;BR /&gt;&lt;BR /&gt;COPY /FTP /ASCII -&lt;BR /&gt;fromhost"user pass"::"/where/ever.txt" -&lt;BR /&gt;localfilename.txt&lt;BR /&gt;&lt;BR /&gt;See the manuals, or see:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://labs.hoffmanlabs.com/node/136" target="_blank"&gt;http://labs.hoffmanlabs.com/node/136&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The more secure version of this operation, which avoids passwords, uses sftp.  (There's unfortunately no DCL verb for that, though.)  See the sftp documentation or see:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://labs.hoffmanlabs.com/node/1118" target="_blank"&gt;http://labs.hoffmanlabs.com/node/1118&lt;/A&gt;</description>
      <pubDate>Fri, 30 Jul 2010 11:01:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668258#M40279</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2010-07-30T11:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668259#M40280</link>
      <description>Thanks for the help so far!&lt;BR /&gt;&lt;BR /&gt;I'm getting somewhere with it&lt;BR /&gt;&lt;BR /&gt;If I issue the following at a command prompt I can get in&lt;BR /&gt;&lt;BR /&gt;Multi ftp 10.37.1.23 /username=username /password="""password"""    (I think it needs these quotes to be in the right case)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ATSR22 MultiNet FTP user process V4.0(118)&lt;BR /&gt;Connection opened (Assuming 8-bit connections)&lt;BR /&gt;&amp;lt;&lt;BR /&gt;[Attempting to log in as ******]&lt;BR /&gt;&lt;USER username="" logged="" in.=""&gt;&lt;/USER&gt;FTP&amp;gt;&lt;BR /&gt;&lt;BR /&gt;However I'm trying to run this procedure within a script so that it writes the commands to ftpjob.tmp and then executes it(it's all within an existing procedure which sends lots of reports out)&lt;BR /&gt;&lt;BR /&gt;$ open/write ftpjob ftpjob.tmp&lt;BR /&gt;$ wr ftpjob "$Multi ftp 10.37.1.23 /username= username /password="""password""""&lt;BR /&gt;$ wr ftpjob "cd /VAX/OUT/SHARE/"&lt;BR /&gt;$ wr ftpjob "put ben.txt ben.txt"&lt;BR /&gt;$ wr ftpjob "bye"&lt;BR /&gt;$ wr ftpjob "$exit"&lt;BR /&gt;$ close ftpjob&lt;BR /&gt;$ @ftpjob.tmp&lt;BR /&gt;$! delete ftpjob.tmp;&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm thinking that somehow it's either submitting the password in the incorrect casing or there's a space missing. &lt;BR /&gt;&lt;BR /&gt;if try for example&lt;BR /&gt;&lt;BR /&gt; Multi ftp 10.37.1.23 /username=********  /password="""****"""&lt;BR /&gt;&lt;BR /&gt;then it'll connect&lt;BR /&gt;&lt;BR /&gt;but if I &lt;BR /&gt;&lt;BR /&gt;open/write benjob benjob.tmp&lt;BR /&gt;wr benjob "multi ftp 10.37.1.23 /username= ftp_legacy_uk_prd  /password="""1pwd4PRDUK""" "&lt;BR /&gt;close benjob&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;then look inside the benjob.tmp file I have&lt;BR /&gt;&lt;BR /&gt;multi ftp 10.37.1.23 /username= ftp_legacy_uk_prd  /password="1PWD4PRDUK"&lt;BR /&gt;&lt;BR /&gt;It has to be something small that I'm missing here I'd imagine&lt;BR /&gt;&lt;BR /&gt;BM</description>
      <pubDate>Fri, 30 Jul 2010 12:19:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668259#M40280</guid>
      <dc:creator>ben_moore34</dc:creator>
      <dc:date>2010-07-30T12:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668260#M40281</link>
      <description>Is the remote systems username case sensitive ?&lt;BR /&gt;If yes, then it must be quoted on the DCL command as well, like the password.&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jul 2010 12:30:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668260#M40281</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2010-07-30T12:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668261#M40282</link>
      <description>yes the host has a mixed case password.&lt;BR /&gt;It's got to be something to do with how the commands get written into the temp  file first and then read back. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jul 2010 12:36:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668261#M40282</guid>
      <dc:creator>ben_moore34</dc:creator>
      <dc:date>2010-07-30T12:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668262#M40283</link>
      <description>If the password is causing a problem...&lt;BR /&gt;&lt;BR /&gt;Just get rid of the password.  &lt;BR /&gt;&lt;BR /&gt;Why?&lt;BR /&gt;&lt;BR /&gt;At least that's being honest about the security here.</description>
      <pubDate>Fri, 30 Jul 2010 12:36:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668262#M40283</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2010-07-30T12:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668263#M40284</link>
      <description>By the way  - some more info on Multi ftp&lt;BR /&gt;&lt;BR /&gt;ATSR19 MultiNet FTP user process V4.0(118)&lt;BR /&gt;Connection opened (Assuming 8-bit connections)&lt;BR /&gt;&lt;BR /&gt;ucx show version&lt;BR /&gt; &lt;BR /&gt;  DEC TCP/IP Services for OpenVMS VAX Version V4.0 - ECO Level 2&lt;BR /&gt;  on a VAX 4000-600A running OpenVMS V7.1</description>
      <pubDate>Fri, 30 Jul 2010 12:38:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668263#M40284</guid>
      <dc:creator>ben_moore34</dc:creator>
      <dc:date>2010-07-30T12:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668264#M40285</link>
      <description>BM&lt;BR /&gt;   this is what you are currently doing&lt;BR /&gt;&lt;BR /&gt;Write Outfile "Password="""Test""""&lt;BR /&gt;&lt;BR /&gt;this appears in OutFile as &lt;BR /&gt;&lt;BR /&gt;Password="TEST"   (Not what you want!)&lt;BR /&gt;&lt;BR /&gt;Try &lt;BR /&gt;&lt;BR /&gt;Write Outfile "Password=""Test"""&lt;BR /&gt;(i.e. one less doublequote around the password string)&lt;BR /&gt;&lt;BR /&gt;Should give;&lt;BR /&gt;&lt;BR /&gt;Password="Test"&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jul 2010 12:44:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668264#M40285</guid>
      <dc:creator>The Brit</dc:creator>
      <dc:date>2010-07-30T12:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668265#M40286</link>
      <description>Thanks for the answers guys&lt;BR /&gt;&lt;BR /&gt;I'd love to get rid of the password, not my decision unfortunately.&lt;BR /&gt;It looks like the command in multi ftp does need the 3""" around the password to recognise it.&lt;BR /&gt;&lt;BR /&gt;OPS&amp;gt; multi ftp 10.37.1.23 /username= ******  /password="""xxxxxx"""&lt;BR /&gt;ATSR22 MultiNet FTP user process V4.0(118)&lt;BR /&gt;Connection opened (Assuming 8-bit connections)&lt;BR /&gt;&amp;lt;&lt;BR /&gt;[Attempting to log in as ********]&lt;BR /&gt;&lt;USER&gt;&lt;/USER&gt;FTP&amp;gt;exit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The above will let me in&lt;BR /&gt;&lt;BR /&gt;OPS&amp;gt; multi ftp 10.37.1.23 /username= ********  /password=XXXXXXXX&lt;BR /&gt;ATSR22 MultiNet FTP user process V4.0(118)&lt;BR /&gt;Connection opened (Assuming 8-bit connections)&lt;BR /&gt;&amp;lt;&lt;BR /&gt;[Attempting to log in as ********]&lt;BR /&gt;&lt;LOGIN or="" password="" incorrect.=""&gt;&lt;/LOGIN&gt;FTP&amp;gt;exit&lt;BR /&gt;&lt;GOODBYE.&gt;&lt;/GOODBYE.&gt;OPS&amp;gt;&lt;BR /&gt;&lt;BR /&gt;I have to somehow retain the 3""" when I write the command to the temp file without DCL interpreting them.&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Fri, 30 Jul 2010 13:00:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668265#M40286</guid>
      <dc:creator>ben_moore34</dc:creator>
      <dc:date>2010-07-30T13:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668266#M40287</link>
      <description>You have VMS 7.1 so why not try Hoff's suggestion and use copy/ftp. I think both multinet and TCPIP/UCX support this.&lt;BR /&gt;&lt;BR /&gt;Oswald</description>
      <pubDate>Fri, 30 Jul 2010 13:39:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668266#M40287</guid>
      <dc:creator>Oswald Knoppers_1</dc:creator>
      <dc:date>2010-07-30T13:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668267#M40288</link>
      <description>It's not easy to communicate the right number of quotes in the ITRC interface ...&lt;BR /&gt;and to write the number of quotes correctly in a DCL statement.&lt;BR /&gt;I usually do it by putting the quote in a DCL symbol, then use symbol substitution in the WRITE statement, like:&lt;BR /&gt;&lt;BR /&gt;$ Q:= """&lt;BR /&gt;$ write file Q,Q,Q,"text",Q,Q,Q&lt;BR /&gt;&lt;BR /&gt;to put text in 3 quotes in the output file.&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jul 2010 13:44:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668267#M40288</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2010-07-30T13:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668268#M40289</link>
      <description>Thanks everyone for all the help &amp;amp; suggestions.&lt;BR /&gt;&lt;BR /&gt;Joseph - I set up a symbol as suggested to represent " and it's working now. Took a little bit of messing around &lt;BR /&gt;&lt;BR /&gt;Thanks again &amp;amp; have a good weekend&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;BM I</description>
      <pubDate>Fri, 30 Jul 2010 14:57:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668268#M40289</guid>
      <dc:creator>ben_moore34</dc:creator>
      <dc:date>2010-07-30T14:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668269#M40290</link>
      <description>&lt;BR /&gt;If three pairs of quotes work when done interactively (ie """Test"""), then you will need more quotes inside the command file. It seems to me that for every command level, another set of quotes gets stripped off.&lt;BR /&gt;&lt;BR /&gt;My two cents.&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jul 2010 15:00:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668269#M40290</guid>
      <dc:creator>RBrown_1</dc:creator>
      <dc:date>2010-07-30T15:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668270#M40291</link>
      <description>&lt;BR /&gt;Yeah I see what you are saying, got it set up like this now &amp;amp; it's working fine&lt;BR /&gt;&lt;BR /&gt;$       Q:= """&lt;BR /&gt;$       open/write ftpjob ftpjob.tmp&lt;BR /&gt;&lt;BR /&gt;$      wr ftpjob "$Multi ftp 10.37.1.23 /username= ********",-&lt;BR /&gt;                        "/password=",Q,Q,Q,"XXXXXXX""",Q,Q&lt;BR /&gt;&lt;BR /&gt;$       wr ftpjob "cd /VAX/OUT/SHARE/"&lt;BR /&gt;$       wr ftpjob "put ben.txt ben.txt"&lt;BR /&gt;$       wr ftpjob "bye"&lt;BR /&gt;$       wr ftpjob "$exit"&lt;BR /&gt;$       close ftpjob&lt;BR /&gt;$       @ftpjob.tmp&lt;BR /&gt;$!      delete ftpjob.tmp;&lt;BR /&gt;$       exit&lt;BR /&gt;&lt;BR /&gt;As a matter of interest do you all use VMS at work? We have a lot of VAXs and a few Alphas here which the company keep threatening to get rid of. Thing is they are so embedded in the infrastructure of the business so it's hard to replace them (keeps me in work for a little longer I guess).&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;BM</description>
      <pubDate>Fri, 30 Jul 2010 15:34:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668270#M40291</guid>
      <dc:creator>ben_moore34</dc:creator>
      <dc:date>2010-07-30T15:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668271#M40292</link>
      <description>$ srcfil ="srcfile.txt"&lt;BR /&gt;$ trgfil = "trgfile.txt"&lt;BR /&gt;$ copy/ftp/ascii - &lt;BR /&gt;'srcfil'&lt;BR /&gt;10.37.1.23"user pass"::"/HERE/THERE/WHATEVER/''trgfil'"</description>
      <pubDate>Fri, 30 Jul 2010 15:55:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668271#M40292</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2010-07-30T15:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668272#M40293</link>
      <description>missing hyphen on a continuation...&lt;BR /&gt;&lt;BR /&gt;$ srcfil ="srcfile.txt"&lt;BR /&gt;$ trgfil = "trgfile.txt"&lt;BR /&gt;$ copy/ftp/ascii - &lt;BR /&gt;'srcfil' -&lt;BR /&gt;10.37.1.23"user pass"::"/HERE/THERE/WHATEVER/''trgfil'"&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jul 2010 15:56:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668272#M40293</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2010-07-30T15:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668273#M40294</link>
      <description>Thanks Hoff&lt;BR /&gt;&lt;BR /&gt;I think in future I'll be using copy/ftp, seems much simpler. I'll probably get asked to modify other scripts before long.&lt;BR /&gt;&lt;BR /&gt;Cheers everyone&lt;BR /&gt;&lt;BR /&gt;BM</description>
      <pubDate>Fri, 30 Jul 2010 16:16:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668273#M40294</guid>
      <dc:creator>ben_moore34</dc:creator>
      <dc:date>2010-07-30T16:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: DCL script to FTP files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668274#M40295</link>
      <description>The last time I looked at this in any great detail (and that is a good couple of years ago) I decided against COPY/FTP because I wanted to trnasfer the file over as a .TMP file and then RENAME it to its correct extention.&lt;BR /&gt;&lt;BR /&gt;Since I would need to establish a connection to do the rename I just did it as follows:&lt;BR /&gt;&lt;BR /&gt;PUT CRAIG.DAT CRAIG.TMP&lt;BR /&gt;RENAME CRAIG.TMP CRAIG.DAT&lt;BR /&gt;&lt;BR /&gt;The advantage of this approach is that if the network connection breaks part-way through the transmit, there isn't a correctly named file left overhanging. Many of the processes were automated and would poll incoming folders for specific files. Not good. &lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Craig &lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jul 2010 16:52:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dcl-script-to-ftp-files/m-p/4668274#M40295</guid>
      <dc:creator>Craig A</dc:creator>
      <dc:date>2010-07-30T16:52:10Z</dc:date>
    </item>
  </channel>
</rss>

