<?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: Reading data from a FTP site (.XLS file) in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169498#M13029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above code was working locally with the same file? What was exactly the code?&lt;/P&gt;&lt;P&gt;Stange, that you can read an Excel file using a data step.&lt;/P&gt;&lt;P&gt;What doeas "run local" mean?&lt;/P&gt;&lt;P&gt;Do you have SAS installed on your (Windows?) desktop? Or you have only EG (so you were connected to a SAS server)? Is the server Windows? Do you have ACCESS to PC file on the server&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is real Excel data (not csv), use ftp binary transfer:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;FILENAME TEST11 FTP 'mydata.xls' lrecl=256 &lt;STRONG&gt;binary&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CD='/EEXInterfaces/Data/'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HOST='myhost'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER='anonymous'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PASS='XXXX' ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jan 2015 07:30:08 GMT</pubDate>
    <dc:creator>gergely_batho</dc:creator>
    <dc:date>2015-01-06T07:30:08Z</dc:date>
    <item>
      <title>Reading data from a FTP site (.XLS file)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169491#M13022</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;&lt;/P&gt;&lt;P&gt;I have a program which is running fine when I run local . We wan to schedule this program to automate the data sets. I'm not able to get all the field values correctly . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a .XLS file on a FTP server , we need to read data from that server using SAS enterprise guide create a SAS , using this in other programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the sample and issue details..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILENAME TEST11 FTP 'mydata.xls' lrecl=256&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CD='/EEXInterfaces/Data/' &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HOST='myhost'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER='anonymous'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PASS='XXXX' ;&lt;/P&gt;&lt;P&gt;DATA REC11 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; INFILE TEST11;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; INPUT&amp;nbsp; Region $9.;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC PRINT DATA=REC11;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not printing values from region column in that excel. I have other columns also ..I think this is related to converting binary format to correct format which SAS can understand . Any idea .. It's urgent ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 20:28:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169491#M13022</guid>
      <dc:creator>Jackme</dc:creator>
      <dc:date>2015-01-05T20:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from a FTP site (.XLS file)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169492#M13023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;more ideas than being sure on that as you gave too little information.&lt;/P&gt;&lt;P&gt;- The FTP protocol is doing sometimes unwanted conversions.&amp;nbsp; Usually related to crossing different systems (Unix/Windows)&lt;/P&gt;&lt;P&gt;- The xls file you are reading onlys&amp;nbsp; is readable with a datastep when it is really more like a csv-file&lt;/P&gt;&lt;P&gt;- running in batch is ususally done with different credentials they could be blocked for FTP (security)&lt;/P&gt;&lt;P&gt;All kind of combinations of these with variations.&lt;/P&gt;&lt;P&gt;What did run in EGuide this code?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 20:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169492#M13023</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-01-05T20:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from a FTP site (.XLS file)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169493#M13024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. As per my knowledge nothing is blocked to retrieve data from FTP site. Yes the same code (adding actual location of the file)I ran in EG . I see there is a problem in displaying that data once it's read from XLS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea / thoughts..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 20:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169493#M13024</guid>
      <dc:creator>Jackme</dc:creator>
      <dc:date>2015-01-05T20:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from a FTP site (.XLS file)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169494#M13025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And the code in EG is giving the error?&lt;/P&gt;&lt;P&gt;- Checked whether it is CSV type named as XLS (that could work) or is the binary 2003 Excel type or the zipped/xml one known as .xlsx?&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;- Checked the possible translations in FTP? (binary and no record separation are often special parms)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;You could do a binary download and then convert the file as usual. Two steps but more easy to validate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 21:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169494#M13025</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-01-05T21:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from a FTP site (.XLS file)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169495#M13026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I second Jaap's approach of downloading the file. You may need it for documenting when format changes occur such as colum order changes/additions/deletions or trouble shooting why expected numeric values are character or even possible text encoding issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 00:00:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169495#M13026</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-01-06T00:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from a FTP site (.XLS file)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169496#M13027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No errors , but data displayed is not correct . I want to see the data which is there on the first column ( Region) but it's displays some values from other columns.&lt;/P&gt;&lt;P&gt;It's .xls format not CSV shows as xls. Can you please let me know the code how we can download binary and covert to file as usual.&lt;/P&gt;&lt;P&gt;I'm new to EG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 02:27:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169496#M13027</guid>
      <dc:creator>Jackme</dc:creator>
      <dc:date>2015-01-06T02:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from a FTP site (.XLS file)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169497#M13028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is one approach &lt;A class="active_link" href="http://blogs.sas.com/content/sasdummy/2013/09/17/copy-file-macro/" title="http://blogs.sas.com/content/sasdummy/2013/09/17/copy-file-macro/"&gt;Copy a file using a SAS program: another method - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;reading form maianfrem binary eplains a lot on different machines using (s)ftp. &lt;A href="http://support.sas.com/techsup/technote/ts642.html" title="http://support.sas.com/techsup/technote/ts642.html"&gt;TS-DOC: TS-642 - Reading EBCDIC Files on ASCII Systems&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When being allowed to used xcmd you could uses the often mandatory standard tools local in place.&lt;/P&gt;&lt;P&gt;Many more options as being a standard way. As you mentioning anonymous Is it public data (we could try) or local in house data?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 06:28:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169497#M13028</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-01-06T06:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from a FTP site (.XLS file)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169498#M13029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The above code was working locally with the same file? What was exactly the code?&lt;/P&gt;&lt;P&gt;Stange, that you can read an Excel file using a data step.&lt;/P&gt;&lt;P&gt;What doeas "run local" mean?&lt;/P&gt;&lt;P&gt;Do you have SAS installed on your (Windows?) desktop? Or you have only EG (so you were connected to a SAS server)? Is the server Windows? Do you have ACCESS to PC file on the server&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is real Excel data (not csv), use ftp binary transfer:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;FILENAME TEST11 FTP 'mydata.xls' lrecl=256 &lt;STRONG&gt;binary&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CD='/EEXInterfaces/Data/'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HOST='myhost'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER='anonymous'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PASS='XXXX' ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 07:30:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reading-data-from-a-FTP-site-XLS-file/m-p/169498#M13029</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-01-06T07:30:08Z</dc:date>
    </item>
  </channel>
</rss>

