<?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 CSV issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828938#M327471</link>
    <description>&lt;P&gt;I do not see anything in the documentation that says you can use the SAS PC Files Server to access CSV files.&amp;nbsp; Just Excel or Access files.&amp;nbsp; if the file is actually a CSV file then move it to a location that SAS can read directly.&amp;nbsp; Or use Excel to read the file and save it as an XLSX file and then try using PC Files Server to read the XLSX file.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2022 22:35:07 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-08-16T22:35:07Z</dc:date>
    <item>
      <title>Import CSV issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828918#M327460</link>
      <description>&lt;P&gt;I have a csv file within a share drive with an &amp;amp;&lt;/P&gt;
&lt;P&gt;%LET MTG = \\p1l-nas-02.dlnet.com\mort\SS&amp;amp;A Folder\mortgage&lt;/P&gt;
&lt;P&gt;When I run the code it says WARNING: Apparent symbolic reference A not resolved&lt;/P&gt;
&lt;P&gt;I renamed this way&lt;/P&gt;
&lt;P&gt;%LET MTG = \\p1l-nas-02.dlnet.com\mort\SS(&amp;amp;)A Folder\mortgage&lt;/P&gt;
&lt;P&gt;I do not get the error when I add (&amp;amp;) however when I run the following code&lt;/P&gt;
&lt;PRE&gt;proc import 
datafile="&amp;amp;MTG.\REPORT.CSV"
out=REPORT  
dbms=EXCELCS replace; /*EXCELCS*/
server="sas-pcff.mortg-prd.com"; 
port=9922 ;
SERVERUSER="&amp;amp;suserid."; SERVERPASS="&amp;amp;mypass.";
run;&lt;/PRE&gt;
&lt;P&gt;I get the error&amp;nbsp;It does not exist or it is already opened exclusively by another user, or you need permission &lt;BR /&gt;I am thinking that I am not actually reading in the sharedrive.&amp;nbsp; I do not know why the user name the sharedrive with an '&amp;amp;' however is there a fix so I can read in the file??&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 19:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828918#M327460</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2022-08-16T19:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828921#M327462</link>
      <description>&lt;P&gt;Try adding macro quoting.&lt;/P&gt;
&lt;P&gt;For your original path you could try just adding it when defining it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET MTG = \\p1l-nas-02.dlnet.com\mort\SS%str(&amp;amp;)A Folder\mortgage;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For the second try adding it in the call to PROC IMPORT.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;datafile="%superq(MTG)\REPORT.CSV"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 19:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828921#M327462</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-08-16T19:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828925#M327463</link>
      <description>&lt;P&gt;Please post the&amp;nbsp;&lt;U&gt;complete&lt;/U&gt; log of your step by copy/pasting it into a window opened with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 19:57:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828925#M327463</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-08-16T19:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828927#M327464</link>
      <description>&lt;P&gt;And why are you using the EXCELCS engine for a text file? EXCELCS is for .xls files.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 20:06:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828927#M327464</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-08-16T20:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828933#M327467</link>
      <description>I used Excel because when I used CSV i received an error.  Is that the correct reference in this case</description>
      <pubDate>Tue, 16 Aug 2022 21:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828933#M327467</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2022-08-16T21:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828936#M327470</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/5629"&gt;@Q1983&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I used Excel because when I used CSV i received an error. Is that the correct reference in this case&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show the code that you use with CSV with the error(s)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may have to open the file, &lt;STRONG&gt;not with spreadsheet software, &lt;/STRONG&gt;with a plain next editor like Notepad to see the actual contents to set the proper delimiter and options.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 21:21:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828936#M327470</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-08-16T21:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828938#M327471</link>
      <description>&lt;P&gt;I do not see anything in the documentation that says you can use the SAS PC Files Server to access CSV files.&amp;nbsp; Just Excel or Access files.&amp;nbsp; if the file is actually a CSV file then move it to a location that SAS can read directly.&amp;nbsp; Or use Excel to read the file and save it as an XLSX file and then try using PC Files Server to read the XLSX file.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 22:35:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828938#M327471</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-08-16T22:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Import CSV issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828960#M327482</link>
      <description>&lt;P&gt;One does not use PROC IMPORT for CSV files. Write the data step yourself, according to the file documentation, for consistent and controlled results. Or use PROC IMPORT &lt;EM&gt;only once&lt;/EM&gt;, and copy the data step code from the log and correct/optimize it.&lt;/P&gt;
&lt;P&gt;The PC Files server is only for Excel workbooks and MS Access (.mdb) files, and is only needed when you run SAS on a non-Windows platform where the Microsoft-supplied module for reading older MS Office files is not available. With the introduction of .xlsx and the (now internal to SAS) XLSX engine SAS can read such files on all supported platforms.&lt;/P&gt;
&lt;P&gt;You have to store the file on the SAS server (upload facility in SAS Studio, or Copy Files task in Enterprise Guide) or on a shared network location which is also accessible (mounted) on the SAS server.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 06:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-CSV-issue/m-p/828960#M327482</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-08-17T06:24:55Z</dc:date>
    </item>
  </channel>
</rss>

