<?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: Read CSV from a Share drive to SAS Dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Read-CSV-from-a-Share-drive-to-SAS-Dataset/m-p/743180#M232603</link>
    <description>&lt;P&gt;As you can see from the SAS log errors, PROC IMPORT does not support use of server logins and passwords when reading CSV files. If you are required to supply a user account and password then using FTP or SFTP is one alternative. That will copy the file to a local server and folder location where PROC IMPORT will work.&lt;/P&gt;</description>
    <pubDate>Sun, 23 May 2021 00:18:33 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2021-05-23T00:18:33Z</dc:date>
    <item>
      <title>Read CSV from a Share drive to SAS Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-CSV-from-a-Share-drive-to-SAS-Dataset/m-p/742999#M232531</link>
      <description>&lt;P&gt;Team ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a code to read Excel file from Share Drive to SAS folder as SAS Data set but it's not working for CSV file , any suggestions on it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also on the share drive we will have a file name like this xxx_2021-19-05 (name with date every day) , how can we read only latest file using the same program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname TESTf '/test/';&lt;BR /&gt;run;&lt;BR /&gt;proc import datafile="\\abc999.cloud.me.org\abc\test_2021-05-19.CSV"&lt;BR /&gt;out=TESTf.xxx_date&lt;BR /&gt;DBMS=CSV REPLACE;&lt;BR /&gt;server="sasabc.xxx.me.org";&lt;BR /&gt;port=1234;&lt;BR /&gt;serveruser="12345";&lt;BR /&gt;serverpass="1234";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;server="sasabc.xxx.me.org";&lt;BR /&gt;______&lt;BR /&gt;180&lt;BR /&gt;32 port=1234;&lt;BR /&gt;____&lt;BR /&gt;180&lt;BR /&gt;33 serveruser="1234";&lt;BR /&gt;__________&lt;BR /&gt;180&lt;BR /&gt;34 serverpass="1234";&lt;BR /&gt;__________&lt;BR /&gt;180&lt;/P&gt;&lt;P&gt;Error :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any details on it.&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>Fri, 21 May 2021 18:17:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-CSV-from-a-Share-drive-to-SAS-Dataset/m-p/742999#M232531</guid>
      <dc:creator>SASJAG</dc:creator>
      <dc:date>2021-05-21T18:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Read CSV from a Share drive to SAS Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-CSV-from-a-Share-drive-to-SAS-Dataset/m-p/743180#M232603</link>
      <description>&lt;P&gt;As you can see from the SAS log errors, PROC IMPORT does not support use of server logins and passwords when reading CSV files. If you are required to supply a user account and password then using FTP or SFTP is one alternative. That will copy the file to a local server and folder location where PROC IMPORT will work.&lt;/P&gt;</description>
      <pubDate>Sun, 23 May 2021 00:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-CSV-from-a-Share-drive-to-SAS-Dataset/m-p/743180#M232603</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-05-23T00:18:33Z</dc:date>
    </item>
  </channel>
</rss>

