<?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: Import a csv file from C drive in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-a-csv-file-from-C-drive/m-p/351348#M81781</link>
    <description>&lt;P&gt;And &lt;STRONG&gt;why&lt;/STRONG&gt; does the subject say "CSV File" and your filename reference an XLSX file????&lt;/P&gt;
&lt;P&gt;If the file is actually CSV the proc import would fail because the file format does not match the import options specified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Spelling counts in computer programs.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2017 15:48:41 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-04-19T15:48:41Z</dc:date>
    <item>
      <title>Import a csv file from C drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-a-csv-file-from-C-drive/m-p/351078#M81692</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to import a file placed in my C drive. However, when I am using import option I am unable t do so.&lt;/P&gt;
&lt;P&gt;code used:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;%let source_file = 'C:\Users\USCUXK04\DESKTOP\sasddpo_md_realignment_table.xlsx';&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;PROC IMPORT &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; DATAFILE=&amp;amp;source_file&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; OUT=WORK.STAGE_MD_REALIGNMENT_TABLE&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; DBMS=XLSX &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; REPLACE;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;RUN;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR: Physical file does not exist, /sasconfig/Lev1/SASApp/C:\Users\USCUXK04\DESKTOP\/sasddpo_md_realignment_table.xlsx.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;by default EG is taking unix path configured, how can i import the file&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 22:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-a-csv-file-from-C-drive/m-p/351078#M81692</guid>
      <dc:creator>upadhi</dc:creator>
      <dc:date>2017-04-18T22:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Import a csv file from C drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-a-csv-file-from-C-drive/m-p/351079#M81693</link>
      <description>&lt;P&gt;Here is the response from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;(who helped create EG) a couple of years ago:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As others have pointed out, your EG installation and your data files are on your PC, but your SAS Workspace session (where the code runs) is on a different box, and the library path you specified isn't valid.&amp;nbsp; You can get your data files to where they need to be by using &lt;/SPAN&gt;&lt;STRONG&gt;Tasks-&amp;gt;Data-&amp;gt;Upload Data Sets to Server&lt;/STRONG&gt;&lt;SPAN&gt;.&amp;nbsp; That task will transfer your local data files into a SAS library that you select.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Art, CEO, AnalystFinder.com&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 23:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-a-csv-file-from-C-drive/m-p/351079#M81693</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-04-18T23:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Import a csv file from C drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-a-csv-file-from-C-drive/m-p/351084#M81694</link>
      <description>&lt;P&gt;Just one modification to Art's answer: if you're dealing with a CSV file or XLSX file, you'll have to use Tasks-&amp;gt;Data-&amp;gt;Copy Files. &amp;nbsp;The Upload SAS Data Sets task applies just to&amp;nbsp;&lt;STRONG&gt;sas7bdat&lt;/STRONG&gt; files that you're loading into a SAS library. &amp;nbsp;The Copy Files task allows you to copy any file from your local PC to an folder on the remote SAS machine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Copy Files was added in EG 7.13. &amp;nbsp;Before that, it's available as a custom task that you can easily add to EG.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 23:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-a-csv-file-from-C-drive/m-p/351084#M81694</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-04-18T23:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Import a csv file from C drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-a-csv-file-from-C-drive/m-p/351105#M81698</link>
      <description>&lt;P&gt;I thought you could also use the GUI to import a local excel file. However this can't be automated via a program.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 02:10:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-a-csv-file-from-C-drive/m-p/351105#M81698</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-19T02:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Import a csv file from C drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-a-csv-file-from-C-drive/m-p/351348#M81781</link>
      <description>&lt;P&gt;And &lt;STRONG&gt;why&lt;/STRONG&gt; does the subject say "CSV File" and your filename reference an XLSX file????&lt;/P&gt;
&lt;P&gt;If the file is actually CSV the proc import would fail because the file format does not match the import options specified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Spelling counts in computer programs.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 15:48:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-a-csv-file-from-C-drive/m-p/351348#M81781</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-19T15:48:41Z</dc:date>
    </item>
  </channel>
</rss>

