<?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 within SAS program in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97903#M20640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SASPhile,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Liking is nice, but checking a response to a question as answered has several advantages&lt;/P&gt;&lt;P&gt;-- the respondent gets "credit" in the forum for their expertise&lt;/P&gt;&lt;P&gt;-- we readers get to see the answer adjacent to the original question, so it is easier to follow (some of the thread get very long).&lt;/P&gt;&lt;P&gt;-- an icon is marked next to the thread that it has been answered.&amp;nbsp; That helps those with limited time to use it most productively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Doc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Dec 2012 14:28:05 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2012-12-13T14:28:05Z</dc:date>
    <item>
      <title>FTP within SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97898#M20635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp; How do I FTP a file from one directory to other within SAS in UNIX?&lt;/P&gt;&lt;P&gt;&amp;nbsp; FTP needs to be done only if I have an error free log.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 17:12:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97898#M20635</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2012-12-12T17:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: FTP within SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97899#M20636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc copy and proc datasets don't work for moving files in UNIX?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 18:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97899#M20636</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-12-12T18:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: FTP within SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97900#M20637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The files I create are to be sftp'd to HADOOP process.So I cannot Sftp sas datasets.I need to sftp a delimited file created from SAS datasets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 19:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97900#M20637</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2012-12-12T19:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: FTP within SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97901#M20638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am curious why you never mark your questions as answered? No one has provided you with a correct answer so far?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 19:03:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97901#M20638</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-12-12T19:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: FTP within SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97902#M20639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually reply saying thanks for by Liking their response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 19:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97902#M20639</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2012-12-12T19:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: FTP within SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97903#M20640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SASPhile,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Liking is nice, but checking a response to a question as answered has several advantages&lt;/P&gt;&lt;P&gt;-- the respondent gets "credit" in the forum for their expertise&lt;/P&gt;&lt;P&gt;-- we readers get to see the answer adjacent to the original question, so it is easier to follow (some of the thread get very long).&lt;/P&gt;&lt;P&gt;-- an icon is marked next to the thread that it has been answered.&amp;nbsp; That helps those with limited time to use it most productively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Doc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 14:28:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97903#M20640</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-12-13T14:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: FTP within SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97904#M20641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried the filename statement with ftp access method?&amp;nbsp; Here's doc, &lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/viewer.htm#p0v0ijxl1k6d4bn16cshtic7u4i3.htm" title="http://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/viewer.htm#p0v0ijxl1k6d4bn16cshtic7u4i3.htm"&gt;SAS(R) 9.3 Statements: Reference&lt;/A&gt; and example.&lt;/P&gt;&lt;P class="paragraph"&gt;&lt;A name="p1j6e06jabk0uln1rjfy1czcgspa"&gt;&lt;/A&gt;This example reads the file &lt;CODE&gt;ftpmem1&lt;/CODE&gt; from a directory on a UNIX host, and writes the file &lt;CODE&gt;ftpout1&lt;/CODE&gt; to a different directory on another UNIX host.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="n0sfxqtro7mgpsn10iupnzuutsnl"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P class="code"&gt;filename indir ftp '/usr/proj2/dir1' DIR host="host1.mycompany.com"&lt;/P&gt;&lt;P class="code"&gt;user="xxxx" prompt; filename outdir ftp '/usr/proj2/dir2' DIR FILEEXT&lt;/P&gt;&lt;P class="code"&gt;host="host2.mycompany.com" user="xxxx" prompt;&lt;/P&gt;&lt;P class="code"&gt;data _null_; infile indir(ftpmem1) truncover; input; file outdir(ftpout1); put _infile_; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="paragraph"&gt;&lt;A name="n1jtzf1h50h5zqn16w0m4233ef94"&gt;&lt;/A&gt;The file &lt;CODE&gt;ftpout1&lt;/CODE&gt; is written to &lt;CODE&gt;/usr/proj2/dir2/ftpout1.DATA&lt;/CODE&gt;. Note that a member type of DATA is appended to the &lt;CODE&gt;ftpout1&lt;/CODE&gt; file because the FILEEXT option was specified in the output file's FILENAME statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="note"&gt;&lt;A name="p1wu9li0us8e3kn1s0j1yoba6nkw"&gt;&lt;/A&gt;&lt;SPAN class="noteGenText"&gt;Note: &lt;/SPAN&gt;The DIR option is not needed for some ODS destinations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="n1d4ahzzzkawr6n1okp96ncs3glx"&gt;&lt;/A&gt;The following example writes an output file and transfers it to an ODS-specified destination. The DIR option is not needed.&lt;/P&gt;&lt;P class="codeFragment"&gt;filename output ftp "~user/ftpdir/"&lt;/P&gt;&lt;P class="codeFragment"&gt;host="host.fyi.company.com" user="userid" pass="userpass"&lt;/P&gt;&lt;P class="codeFragment"&gt;recfm=s debug;&lt;/P&gt;&lt;P class="codeFragment"&gt;ods html body='body.html' path=output; proc print data=sashelp.class;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A name="n0h2g7zw1br9d1n1nawpailb3qr9"&gt;&lt;/A&gt;To export multiple graph files to a remote directory location, the DIR option must be specified in the FILENAME statement. Accordingly, when creating external graph files with the ODS HTML destination, two FILENAME statements are needed: one for the HTML files, and one for the graph files. The following example illustrates the need for two FILENAME statements.&lt;/P&gt;&lt;P class="codeFragment"&gt;filename output1 ftp "~user/dir" fileext&lt;/P&gt;&lt;P class="codeFragment"&gt;host="host.unx.company.com" user="userid" pass="userpass"&lt;/P&gt;&lt;P class="codeFragment"&gt;recfm=s debug; filename output2 ftp "~user/dir" dir fileext&lt;/P&gt;&lt;P class="codeFragment"&gt;host="host.unx.company.com" user="userid" pass="userpass"&lt;/P&gt;&lt;P class="codeFragment"&gt;recfm=s debug; ods html body='body.html'&lt;/P&gt;&lt;P class="codeFragment"&gt;path=output1 gpath=output2 frame='frames.html' contents='contents.html';&lt;/P&gt;&lt;P class="codeFragment"&gt;proc gtestit; run; quit; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 15:16:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97904#M20641</guid>
      <dc:creator>dbravo</dc:creator>
      <dc:date>2012-12-13T15:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: FTP within SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97905#M20642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use PROC HADOOP and avoid the FTP stuff...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/achadoop/65227/PDF/default/achadoop.pdf" title="http://support.sas.com/documentation/cdl/en/achadoop/65227/PDF/default/achadoop.pdf"&gt;http://support.sas.com/documentation/cdl/en/achadoop/65227/PDF/default/achadoop.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample_config.xml&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_text_macro jive_macro_code  _jivemacro_uid_13554330193194380" jivemacro_uid="_13554330193194380"&gt;
&lt;P&gt;&amp;lt;configuration&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;property&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;fs.default.name&amp;lt;/name&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;hdfs://xxx.us.company.com:8020&amp;lt;/value&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;property&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;mapred.job.tracker&amp;lt;/name&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;xxx.us.company.com:8021&amp;lt;/value&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/configuration&amp;gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename cfg "C:\Users\sasabc\hadoop\sample_config.xml";&lt;/P&gt;&lt;P&gt;proc hadoop options=cfg username="sasabc" password="sasabc" verbose;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; hdfs copyfromlocal="C:\user\sasabc\testdata.txt"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; out="/users/sasabc/Hadoop/testdata.txt" overwrite;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 21:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97905#M20642</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-12-13T21:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: FTP within SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97906#M20643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where to check a response as answered?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 02:29:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/FTP-within-SAS-program/m-p/97906#M20643</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2012-12-21T02:29:07Z</dc:date>
    </item>
  </channel>
</rss>

