<?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: Automate reading the SAS files from SFTP and run the daily program to read in the data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Automate-reading-the-SAS-files-from-SFTP-and-run-the-daily/m-p/384466#M276840</link>
    <description>&lt;P&gt;You need to SFTP instead of FTP if you are accessing an SFTP server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=p0xln1fiwsr340n1xxf4mkmfxp6f.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=p0xln1fiwsr340n1xxf4mkmfxp6f.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even then you might need to do something to allow you to connect. &amp;nbsp;Sign on to the host where SAS is running and see if you can connect to the SFTP host using the sftp command line program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might need to automate the download parts by calling the&amp;nbsp;sftp commands via the SYSEXEC or X commands or by using PIPE engine on a filename. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You also might want to look into using curl to retrieve the files instead of native sftp commands. &amp;nbsp;That should give you a lot more flexibility in automating the login process.&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2017 23:03:31 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2017-07-31T23:03:31Z</dc:date>
    <item>
      <title>Automate reading the SAS files from SFTP and run the daily program to read in the data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automate-reading-the-SAS-files-from-SFTP-and-run-the-daily/m-p/378851#M276835</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I download data from different vendors posted on SFTP&amp;nbsp;every day. I have written a general program for each data as data layout structure for each data is same. So, everyday, I download and copy the data to a particular folder, run the program to read in the data and save the data to a particular folder. Is there any method to automate this so that I don't have to do the same boring stuff every day. So, basically I want a solution where the program will check if any new data is available, download it and save it to a particular folder, run the program at a particular time of the day and then save the SAS data to a folder. Please let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 03:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automate-reading-the-SAS-files-from-SFTP-and-run-the-daily/m-p/378851#M276835</guid>
      <dc:creator>CHAN07</dc:creator>
      <dc:date>2017-07-25T03:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Automate reading the SAS files from SFTP and run the daily program to read in the data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automate-reading-the-SAS-files-from-SFTP-and-run-the-daily/m-p/378852#M276836</link>
      <description>&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/viewer.htm#p0xln1fiwsr340n1xxf4mkmfxp6f.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/viewer.htm#p0xln1fiwsr340n1xxf4mkmfxp6f.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 03:41:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automate-reading-the-SAS-files-from-SFTP-and-run-the-daily/m-p/378852#M276836</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-25T03:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Automate reading the SAS files from SFTP and run the daily program to read in the data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automate-reading-the-SAS-files-from-SFTP-and-run-the-daily/m-p/379428#M276837</link>
      <description>&lt;P&gt;Hey Reeza&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the link. I am using this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILENAME DIR FTP ' &amp;nbsp; &amp;nbsp; &amp;nbsp; ' LS USER = '********************' HOST = '**************************' PASS = '######';&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the log, it says the connection timed out. Since I am using WINSCP&amp;nbsp;software to download the files, is it creating a problem because I didn't mention any software connection over here and it is trying to search the host on web.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chandan Mishra&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 15:26:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automate-reading-the-SAS-files-from-SFTP-and-run-the-daily/m-p/379428#M276837</guid>
      <dc:creator>CHAN07</dc:creator>
      <dc:date>2017-07-26T15:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Automate reading the SAS files from SFTP and run the daily program to read in the data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automate-reading-the-SAS-files-from-SFTP-and-run-the-daily/m-p/379443#M276838</link>
      <description>&lt;P&gt;WinSCP connects to a server using the same host/user and password information. Did you put in the same values from WinSCP into the FILENAME statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure why you think you need to have a 'software connection'. The idea should be to bypass WinSCP to get the file directly.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 15:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automate-reading-the-SAS-files-from-SFTP-and-run-the-daily/m-p/379443#M276838</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-26T15:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Automate reading the SAS files from SFTP and run the daily program to read in the data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automate-reading-the-SAS-files-from-SFTP-and-run-the-daily/m-p/384446#M276839</link>
      <description>&lt;P&gt;I am still trying to read in the files using the method available on SAS community. I have used all the processes but not able to log into the SFTP&amp;nbsp;system even though I can log in normally. I will keep you posted.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 21:31:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automate-reading-the-SAS-files-from-SFTP-and-run-the-daily/m-p/384446#M276839</guid>
      <dc:creator>CHAN07</dc:creator>
      <dc:date>2017-07-31T21:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Automate reading the SAS files from SFTP and run the daily program to read in the data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automate-reading-the-SAS-files-from-SFTP-and-run-the-daily/m-p/384466#M276840</link>
      <description>&lt;P&gt;You need to SFTP instead of FTP if you are accessing an SFTP server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=p0xln1fiwsr340n1xxf4mkmfxp6f.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=p0xln1fiwsr340n1xxf4mkmfxp6f.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even then you might need to do something to allow you to connect. &amp;nbsp;Sign on to the host where SAS is running and see if you can connect to the SFTP host using the sftp command line program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might need to automate the download parts by calling the&amp;nbsp;sftp commands via the SYSEXEC or X commands or by using PIPE engine on a filename. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You also might want to look into using curl to retrieve the files instead of native sftp commands. &amp;nbsp;That should give you a lot more flexibility in automating the login process.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 23:03:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automate-reading-the-SAS-files-from-SFTP-and-run-the-daily/m-p/384466#M276840</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-07-31T23:03:31Z</dc:date>
    </item>
  </channel>
</rss>

