<?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: ftp command procedure in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914903#M69717</link>
    <description>You may also wish to consider using the COPY/FTP syntax. See HELP.</description>
    <pubDate>Thu, 28 Jul 2005 08:28:41 GMT</pubDate>
    <dc:creator>Ian Miller.</dc:creator>
    <dc:date>2005-07-28T08:28:41Z</dc:date>
    <item>
      <title>ftp command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914901#M69715</link>
      <description>I think this has been discussed before but here goes.&lt;BR /&gt;Compaq TCP/IP Services for OpenVMS VAX Version V5.3&lt;BR /&gt;VMS 7.3&lt;BR /&gt;The command procedure is below.&lt;BR /&gt;$ date = f$extract(0,10,f$cvtime())&lt;BR /&gt;$ mo = f$extract(5,2,date)&lt;BR /&gt;$ da = f$extract(8,2,date)&lt;BR /&gt;$ yr = f$extract(2,2,date)&lt;BR /&gt;$ fil = "dbt_"'mo''da''yr' + ".dat"&lt;BR /&gt;$ set def dka200:[jnc]&lt;BR /&gt;$ ftp/user=chambjx/pass=xxxxxxx upenn2 -&lt;BR /&gt;get pg_disk:[chambjx.jesse.sytools.sydata]'fil' dka200:[jnc]'fil'&lt;BR /&gt;&lt;BR /&gt;When this is executed I receive the following error.&lt;BR /&gt;&lt;BR /&gt;%DCL-W-NUMBER, invalid numeric value - supply an integer&lt;BR /&gt; \GET\&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jul 2005 08:07:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914901#M69715</guid>
      <dc:creator>Jesse Chambless</dc:creator>
      <dc:date>2005-07-28T08:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: ftp command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914902#M69716</link>
      <description>Jesse,&lt;BR /&gt;&lt;BR /&gt;remove the minus sign at the end of the ftp line.&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Marc</description>
      <pubDate>Thu, 28 Jul 2005 08:19:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914902#M69716</guid>
      <dc:creator>Marc Van den Broeck</dc:creator>
      <dc:date>2005-07-28T08:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: ftp command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914903#M69717</link>
      <description>You may also wish to consider using the COPY/FTP syntax. See HELP.</description>
      <pubDate>Thu, 28 Jul 2005 08:28:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914903#M69717</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-07-28T08:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: ftp command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914904#M69718</link>
      <description>The - at the end is a line continuator for the procedure.&lt;BR /&gt;&lt;BR /&gt;Below is a very similiar procedure using Multinet.&lt;BR /&gt;&lt;BR /&gt;$ date = f$extract(0,10,f$cvtime())&lt;BR /&gt;$ mo = f$extract(5,2,date)&lt;BR /&gt;$ da = f$extract(8,2,date)&lt;BR /&gt;$ yr = f$extract(2,2,date)&lt;BR /&gt;$ fil = "dbt_"'mo''da''yr' + ".dat"&lt;BR /&gt;$ ftp/user=system/pass=xxxxxx cm1 -&lt;BR /&gt;        get dka200:[jnc]'fil' cachesys:'fil'&lt;BR /&gt;$!&lt;BR /&gt;&lt;BR /&gt;This procedure works great.&lt;BR /&gt;&lt;BR /&gt;I must admit, I had the procedure list working and managed to delete it!  I am now trying to re-create it on TCPIP.</description>
      <pubDate>Thu, 28 Jul 2005 08:29:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914904#M69718</guid>
      <dc:creator>Jesse Chambless</dc:creator>
      <dc:date>2005-07-28T08:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: ftp command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914905#M69719</link>
      <description>Jesse,&lt;BR /&gt;I'm with Marc, remove hyphen.&lt;BR /&gt; &lt;BR /&gt;In vms, every line with end hyphen means continue with next line.&lt;BR /&gt;Without hyphen, your command procedure open ftp and then execute get command.&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jul 2005 08:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914905#M69719</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2005-07-28T08:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: ftp command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914906#M69720</link>
      <description>The problem with that is I am passing in a symbol and ftp will not see the file name.</description>
      <pubDate>Thu, 28 Jul 2005 09:03:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914906#M69720</guid>
      <dc:creator>Jesse Chambless</dc:creator>
      <dc:date>2005-07-28T09:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: ftp command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914907#M69721</link>
      <description>Multinet &amp;lt;&amp;gt; TCPIP....&lt;BR /&gt;&lt;BR /&gt;This is how we do it, sending all files from a previously prepared directory:&lt;BR /&gt;&lt;BR /&gt;$   ftp&lt;BR /&gt;&lt;IP address=""&gt;/user=&lt;USER&gt; /passw=&lt;PASSWORD&gt;&lt;BR /&gt;prompt&lt;BR /&gt;asci&lt;BR /&gt;send bps$exp:*.*;*&lt;BR /&gt;bye&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;ftp + addrtess + user + password on one line, rest on a line by themselves.&lt;BR /&gt;&lt;BR /&gt;So no "-" in your FTP-line...&lt;BR /&gt;&lt;BR /&gt;In other occasions, a commandprocedure as above is created in that procedure, executed and deleted:&lt;BR /&gt;&lt;BR /&gt;$ open/write FTPFILE ftp.com&lt;BR /&gt;$ write FTPFILE "ftp&lt;BR /&gt;&lt;IP address=""&gt;/user=&lt;USER&gt; /passw=&lt;PASSSWORD&gt;"&lt;BR /&gt;$ write FTPFILE "prompt"&lt;BR /&gt;$ write FTPFILE "asci"&lt;BR /&gt;$ write FTPFILE "send bps$exp:*.*;*"&lt;BR /&gt;$ write FTPFILE "bye"&lt;BR /&gt;$ close FTPFILE&lt;BR /&gt;$ @ftp.com&lt;BR /&gt;$ delete/nolog ftp.com;*&lt;BR /&gt;&lt;BR /&gt;Not very elegant, but who cares. It works...&lt;BR /&gt;Be sure though to redefine SYS$INPUT to TT: (as we have in ou command procedure)&lt;/PASSSWORD&gt;&lt;/USER&gt;&lt;/IP&gt;&lt;/PASSWORD&gt;&lt;/USER&gt;&lt;/IP&gt;</description>
      <pubDate>Thu, 28 Jul 2005 09:05:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914907#M69721</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2005-07-28T09:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: ftp command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914908#M69722</link>
      <description>Jesse,&lt;BR /&gt;&lt;BR /&gt;we essentially use Willem's solution.&lt;BR /&gt;Clumsy, but works great.&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Thu, 28 Jul 2005 10:20:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914908#M69722</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-07-28T10:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: ftp command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914909#M69723</link>
      <description>$ COPY/FTP/ASCII upenn2"chambjx xxxxxx"::pg_disk:[chambjx.jesse.systools.sydata]'fil'   dka200:[jnc]'fil'&lt;BR /&gt;&lt;BR /&gt;(all one line)</description>
      <pubDate>Thu, 28 Jul 2005 10:54:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914909#M69723</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-07-28T10:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: ftp command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914910#M69724</link>
      <description>Jesse,&lt;BR /&gt;&lt;BR /&gt;I will go for the COPY/FTP solution as mentioned by Ian:&lt;BR /&gt;&lt;BR /&gt;$ COPY/FTP upenn2"chambjx xxxxxxx":: pg_disk:[chambjx.jesse.sytools.sydata]'fil' dka200:[jnc]'fil'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;With TCP/IP Services you can not do the command in one line so you must remove the minus sign at the end of yours command. So you get the same thing as if you type the command:&lt;BR /&gt;&lt;BR /&gt;$ ftp/user=chambjx/pass=xxxxxxx upenn2&lt;BR /&gt;&lt;BR /&gt;get the FTP&amp;gt; prompt and type&lt;BR /&gt;&lt;BR /&gt;FTP&amp;gt; get pg_disk:[chambjx.jesse.sytools.sydata]'fil' dka200:[jnc]'fil'&lt;BR /&gt;&lt;BR /&gt;But now you get problems with symbol replacement. The symbols are not replaced.&lt;BR /&gt;&lt;BR /&gt;If you want to replace this symbols you can use the pipe command:&lt;BR /&gt;&lt;BR /&gt;$ PIPE WRITE SYS$OUTPUT -&lt;BR /&gt;  "get pg_disk:[dir]''fil' dka200:[jnc]''fil'" -&lt;BR /&gt;| ftp/user=chambjx/pass=xxxxxxx upenn2&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;There is another solution which works with put, but not with get:&lt;BR /&gt;&lt;BR /&gt;$ date = f$extract(0,10,f$cvtime())&lt;BR /&gt;$ mo = f$extract(5,2,date)&lt;BR /&gt;$ da = f$extract(8,2,date)&lt;BR /&gt;$ yr = f$extract(2,2,date)&lt;BR /&gt;$ define file "dbt_''mo'''da'''yr'.dat"&lt;BR /&gt;$ ftp/user=chambjx/pass=xxxxxxx upenn2&lt;BR /&gt;put file&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bojan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jul 2005 10:55:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914910#M69724</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2005-07-28T10:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: ftp command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914911#M69725</link>
      <description>Modified to the "kludgey" method and it works great.  See below.&lt;BR /&gt;&lt;BR /&gt;$ date = f$extract(0,10,f$cvtime())&lt;BR /&gt;$ mo = f$extract(5,2,date)&lt;BR /&gt;$ da = f$extract(8,2,date)&lt;BR /&gt;$ yr = f$extract(2,2,date)&lt;BR /&gt;$ fil = "dbt_"'mo''da''yr' + ".dat"&lt;BR /&gt;$ set def dka200:[jnc]&lt;BR /&gt;$ open/write FTPFILE ftp.com&lt;BR /&gt;$ write FTPFILE "ftp/user=chambjx /pass=xxxxxx &lt;NODE&gt;"&lt;BR /&gt;$ write FTPFILE "ascii"&lt;BR /&gt;$ write FTPFILE "get pg_disk:[chambjx.jesse.sytools.sydata]''fil' dka200:[jnc]''fil'" &lt;BR /&gt;$ write FTPFILE "exit"&lt;BR /&gt;$ close FTPFILE&lt;BR /&gt;$ @ftp.com&lt;BR /&gt;$ delete/nolog ftp.com;*&lt;BR /&gt;&lt;BR /&gt;Thanks for everyones help!!&lt;/NODE&gt;</description>
      <pubDate>Thu, 28 Jul 2005 13:18:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914911#M69725</guid>
      <dc:creator>Jesse Chambless</dc:creator>
      <dc:date>2005-07-28T13:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: ftp command procedure</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914912#M69726</link>
      <description>See last response for the fix.</description>
      <pubDate>Thu, 28 Jul 2005 13:19:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/ftp-command-procedure/m-p/4914912#M69726</guid>
      <dc:creator>Jesse Chambless</dc:creator>
      <dc:date>2005-07-28T13:19:21Z</dc:date>
    </item>
  </channel>
</rss>

