<?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: Physical file does not exist in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674533#M23557</link>
    <description>&lt;P&gt;Sorry about that. I changed it to sample&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2020 19:33:54 GMT</pubDate>
    <dc:creator>Kimberly_2020</dc:creator>
    <dc:date>2020-08-04T19:33:54Z</dc:date>
    <item>
      <title>Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674492#M23544</link>
      <description>&lt;P&gt;Hello there! i am a new SAS user and I am trying to import a CSV file...I have already created a folder in SAS where the csv file is..The problem is that when I press run, it keeps saying physical file does not exist...The folder name is rapid_syphilis and the csv in it is named sample_8.3.2020...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;/*import a CSV file*/&lt;/P&gt;&lt;P&gt;%let path=S:\CSV Import;&lt;/P&gt;&lt;P&gt;options validvarname=v7;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile="&amp;amp;path\rapid_syphilis.csv"&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;out=syphilis&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;dbms=csv replace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 18:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674492#M23544</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-04T18:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674503#M23545</link>
      <description>&lt;P&gt;When you have a macro variable that has a value of&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;S:\CSV Import&lt;/FONT&gt; then your code uses it in this line&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="&amp;amp;path\rapid_syphilis.csv"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and so &amp;amp;path is replaced by &lt;FONT face="courier new,courier"&gt;S:\CSV Import&lt;/FONT&gt; and so now SAS is looking for the file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;S:\CSV Import\rapid_syphilis.csv&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt; and the ERROR message you are getting is that this file does not exist. You are pointing in the wrong folder, or you have the wrong file name.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Side issue: you don't need a macro variable here at all. Just get rid of it and type in the correct folder and file name in PROC IMPORT. Especially for a beginner, it's easier to get the file name and folder correct by typing it in yourself than by resorting to a macro variable.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 18:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674503#M23545</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-08-04T18:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674506#M23546</link>
      <description>&lt;P&gt;Now it is giving me a syntax error for:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile= s:\CSV Import\rapid_syphilis.csv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The line is under the colon..it says it is not recognized and will be ignored&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 18:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674506#M23546</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-04T18:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674510#M23547</link>
      <description>&lt;P&gt;Also, when I change the colon to semicolon...It says output SAS data set must be provided&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 19:03:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674510#M23547</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-04T19:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674511#M23548</link>
      <description>&lt;P&gt;First, I don't think you have actually stated that&amp;nbsp;&lt;SPAN&gt;s:\CSV Import\rapid_syphilis.csv actually exists, and SAS thinks it doesn't exist, so I believe SAS.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show us the LOG from this portion of the code. Do not chop anything out. Copy the log as text and then use the &amp;lt;/&amp;gt; icon here to open a window which the log should be pasted into — do not skip this step.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 19:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674511#M23548</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-08-04T19:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674515#M23549</link>
      <description>Does the code work without any macro variables?</description>
      <pubDate>Tue, 04 Aug 2020 19:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674515#M23549</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-04T19:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674517#M23550</link>
      <description>&lt;PRE&gt;/*Import a CSV File*/
%let path=S:\CSV Import;
options validvarname=v7;

proc import datafile= s:\CSV Import\rapid_syphilis.csv
			out=sample_8.3.2020.csv
			dbms=csv replace;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Aug 2020 19:14:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674517#M23550</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-04T19:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674518#M23551</link>
      <description>&lt;P&gt;No it gave me syntax error..and it didn't work with it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 19:14:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674518#M23551</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-04T19:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674519#M23552</link>
      <description>&lt;P&gt;How do I state it exist?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 19:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674519#M23552</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-04T19:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674520#M23553</link>
      <description>&lt;P&gt;You did not show me the LOG from your code. I need to see the LOG including the code, NOTES, WARNINGs and ERRORs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You confirm that the file exists by showing me a screen capture of the folder so we can all see what files are in it.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 19:17:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674520#M23553</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-08-04T19:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674521#M23554</link>
      <description>&lt;P&gt;Adding, this is probably the error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;out=sample_8.3.2020.csv&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;you have to use a valid SAS data set name here, which can't have periods, spaces or any special characters except an underscore. Which is why you really need to show us the log in the first place, this would have saved lots of time.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 19:18:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674521#M23554</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-08-04T19:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674528#M23555</link>
      <description>&lt;PRE&gt; NOTE: The SAS System stopped processing this step because of errors.
 77         proc import datafile= s:\CSV Import\rapid_syphilis.csv
                                   _
                                   22
                                   200
 ERROR 22-322: Syntax error, expecting one of the following: ;, DATAFILE, DATATABLE, DBMS, DEBUG, FILE, OUT, REPLACE, TABLE, 
               _DEBUG_.  
 
 ERROR 200-322: The symbol is not recognized and will be ignored.
78         out=sample_8.3.2020.csv
                             _____
                             22
                             76
 ERROR 22-322: Syntax error, expecting one of the following: ;, (, DATAFILE, DATATABLE, DBMS, DEBUG, FILE, OUT, REPLACE, TABLE, 
               _DEBUG_.  
 
 ERROR 76-322: Syntax error, statement will be ignored.
 
 79         dbms=csv replace;
 80         run;
 81         &lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Aug 2020 19:29:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674528#M23555</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-04T19:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674529#M23556</link>
      <description>&lt;PRE&gt; NOTE: PROCEDURE IMPORT used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              204.09k
       OS Memory           30372.00k
       Timestamp           08/04/2020 07:23:15 PM
       Step Count                        24  Switch Count  0
       Page Faults                       0
       Page Reclaims                     63
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           0
       
 NOTE: The SAS System stopped processing this step because of errors.&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Aug 2020 19:31:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674529#M23556</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-04T19:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674533#M23557</link>
      <description>&lt;P&gt;Sorry about that. I changed it to sample&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 19:33:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674533#M23557</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-04T19:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674535#M23558</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="s:\CSV Import\rapid_syphilis.csv"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and fix the OUT=&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 19:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674535#M23558</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-08-04T19:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674542#M23559</link>
      <description>&lt;P&gt;Now it says libname is not assigned...I am sorry for bugging you..I am really new at this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 20:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674542#M23559</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-04T20:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674544#M23560</link>
      <description>&lt;P&gt;The filename should be in quotes&lt;/P&gt;
&lt;PRE&gt;proc import datafile= "s:\CSV Import\rapid_syphilis.csv"&lt;/PRE&gt;
&lt;P&gt;The only output Proc Import will create is a SAS data set. Not CSV.&lt;/P&gt;
&lt;P&gt;So you specify a library name and data set name.&lt;/P&gt;
&lt;P&gt;out= libname.dataset&lt;/P&gt;
&lt;P&gt;which uses a single dot between the SAS library name and the data set name. Multiple dots are right out. Data set names can only have letters, digits and the _ character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you later want to send SAS data out to a CSV file you would use Proc Export.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 20:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674544#M23560</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-04T20:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674545#M23561</link>
      <description>&lt;PRE&gt;libname syphilis "/home/u49152645/syphilis";

Note:

1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         libname syphilis "/home/u49152645/syphilis";
 NOTE: Library SYPHILIS does not exist.
 74         
 75         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 87         &lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Aug 2020 20:04:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674545#M23561</guid>
      <dc:creator>Kimberly_2020</dc:creator>
      <dc:date>2020-08-04T20:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674635#M23562</link>
      <description>You need to show your whole code and log. We're seeing bits and pieces that don't make sense.</description>
      <pubDate>Wed, 05 Aug 2020 02:27:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674635#M23562</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-08-05T02:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Physical file does not exist</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674641#M23563</link>
      <description>&lt;P&gt;Which kind of SAS installation are you using?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;University Edition in a downloaded virtual machine&lt;/LI&gt;
&lt;LI&gt;SAS on Demand for Academics&lt;/LI&gt;
&lt;LI&gt;licensed SAS in a local installation&lt;/LI&gt;
&lt;LI&gt;licensed SAS in a client/server installation&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;All these need different methods for accessing external files and defining libnames, so it is essential for us to know how you use SAS.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 04:17:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Physical-file-does-not-exist/m-p/674641#M23563</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-05T04:17:47Z</dc:date>
    </item>
  </channel>
</rss>

