<?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: I need help using infile with txt file on mac SAS University edition in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540244#M7137</link>
    <description>&lt;P&gt;Your error message is saying that it is trying to find the /folder directory under the current working directory that the SAS process is using. That means it looks like it is either not seeing the / at the front of the string in your code or there is some other character in front of the / that is in your code that is not showing in your error message.&lt;/P&gt;
&lt;P&gt;Compare the log when you use these three slightly different lines.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile '/folders/myfolders/text/list1.txt';
infile ' /folders/myfolders/text/list1.txt';
infile 'folders/myfolders/text/list1.txt';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Can you find the file in the files panel on the left in the SAS/Studio interface?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so then get the properties for the file from there. That will show the path that SAS/Studio GUI is using to find the file. Copy that path and paste it into your program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2019 21:27:55 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-03-04T21:27:55Z</dc:date>
    <item>
      <title>I need help using infile with txt file on mac SAS University edition</title>
      <link>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540156#M7132</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I am unable to use the infile statement on SAS University on my MAC book. I have the folders setup in Documents&amp;gt;SASUniversity&amp;gt;myfolders&amp;gt;text&amp;gt;list1.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get this error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: Physical file does not exist, /opt/sasinside/SASConfig/Lev1/SASApp/folders/myfolders/text/list1.txt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code I have tried to use after reading similar forums is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Infile '/folders/myfolders/text/list1.txt';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I really need to get this to work if I am going to learn SAS and practice for the Base 9 exam. If you are familiar with how SAS reads files on MACS please provide feedback. The other forums I read said the infile should start with '/folders/myfolders/' but that doesn't do anything for me. I appreciate your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 19:33:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540156#M7132</guid>
      <dc:creator>ferlopz298</dc:creator>
      <dc:date>2019-03-04T19:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: I need help using infile with txt file on mac SAS University edition</title>
      <link>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540212#M7135</link>
      <description>&lt;P&gt;Are you 100% sure that you used&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile '/folders/myfolders/text/list1.txt';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and not&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile 'folders/myfolders/text/list1.txt';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;Please post the&amp;nbsp;&lt;EM&gt;whole&lt;/EM&gt; log of the failing step, using the {i} button.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 20:51:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540212#M7135</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-04T20:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: I need help using infile with txt file on mac SAS University edition</title>
      <link>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540234#M7136</link>
      <description>&lt;P&gt;Yes, the code reads:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Number;&lt;BR /&gt;Infile'/folders/myfolders/text/list1.txt';&lt;BR /&gt;Input Num1 Num2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It still says&amp;nbsp;&lt;SPAN&gt;ERROR: Physical file does not exist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you think my shared folder was setup incorrectly? it was setup under Documents in Mac&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 21:16:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540234#M7136</guid>
      <dc:creator>ferlopz298</dc:creator>
      <dc:date>2019-03-04T21:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: I need help using infile with txt file on mac SAS University edition</title>
      <link>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540244#M7137</link>
      <description>&lt;P&gt;Your error message is saying that it is trying to find the /folder directory under the current working directory that the SAS process is using. That means it looks like it is either not seeing the / at the front of the string in your code or there is some other character in front of the / that is in your code that is not showing in your error message.&lt;/P&gt;
&lt;P&gt;Compare the log when you use these three slightly different lines.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile '/folders/myfolders/text/list1.txt';
infile ' /folders/myfolders/text/list1.txt';
infile 'folders/myfolders/text/list1.txt';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Can you find the file in the files panel on the left in the SAS/Studio interface?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so then get the properties for the file from there. That will show the path that SAS/Studio GUI is using to find the file. Copy that path and paste it into your program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 21:27:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540244#M7137</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-03-04T21:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: I need help using infile with txt file on mac SAS University edition</title>
      <link>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540330#M7143</link>
      <description>&lt;P&gt;Post the log, as already requested.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 05:25:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540330#M7143</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-05T05:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: I need help using infile with txt file on mac SAS University edition</title>
      <link>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540467#M7152</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Another issue you may have is that you are specifically told to make a folder on your Mac called "SASUniversity&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;Edition&lt;/STRONG&gt;&lt;/FONT&gt;" with a subfolder of "&lt;STRONG&gt;myfolders&lt;/STRONG&gt;" on your Mac hard drive. So the shared folder location should be:&lt;/P&gt;
&lt;P&gt;/high-level-path-on-Mac/&lt;STRONG&gt;SASUniversity&lt;FONT color="#FF00FF"&gt;Edition&lt;/FONT&gt;/myfolder&lt;/STRONG&gt;s&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Yet, it looks like you named your folder "SASUniversity/myfolders" and that could be causing some of your problems, as well.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 15:04:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540467#M7152</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-03-05T15:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: I need help using infile with txt file on mac SAS University edition</title>
      <link>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540514#M7154</link>
      <description>&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 Data Number;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 Infile'/folders/myfolders/text/list1.txt';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 Input Num1 Num2;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;76 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Physical file does not exist, /folders/myfolders/text/list1.txt.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The data set WORK.NUMBER may be incomplete. When this step was stopped there were 0 observations and 2 variables.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Data set WORK.NUMBER was not replaced because this step was stopped.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.01 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;77&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;78 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Mar 2019 17:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540514#M7154</guid>
      <dc:creator>ferlopz298</dc:creator>
      <dc:date>2019-03-05T17:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: I need help using infile with txt file on mac SAS University edition</title>
      <link>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540519#M7155</link>
      <description>&lt;P&gt;That's different from your original post, where SAS complained about "&lt;SPAN&gt;/opt/sasinside/SASConfig/Lev1/SASApp/folders/myfolders/text/list1.txt"&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Still, when SAS tells you that a file is not there, it's not there. Can you see the file in the file browser of SAS Studio?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 17:44:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540519#M7155</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-03-05T17:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: I need help using infile with txt file on mac SAS University edition</title>
      <link>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540568#M7162</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Just to clarify the ERROR that shows "/opt/sasinside" is very easy to generate in SAS University Edition. All you have to do is get some part of the path incorrect, or refer to a drive location instead of /folders/myfolders/ or not define your shared folder location correctly. For example, when I refer to a C: drive location in SAS University Edition, I can generate the same kind of "/opt/sasinside" error, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="generate_optinside_error.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27679iB8F227FBFE79C6B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="generate_optinside_error.png" alt="generate_optinside_error.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here, my code was in a datafile= option, but it could just have easily been an INFILE or a FILE statement or a FILE= option. Notice how the /opt/sasinside/SASConfig/Lev1/SASApp server folder path is pre-pended to the C: drive location path, resulting in a non-existent location, as far as the Virtual Machine is concerned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This is an example from Programming 1, but could be an error with any Excel, TXT or CSV file that you are trying to read/import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Let's take a step back and look at an example of what a shared folder location looks like on the Mac, in Finder:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mac_before_making_data.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27680i7931C63442F9AA16/image-size/large?v=v2&amp;amp;px=999" role="button" title="mac_before_making_data.png" alt="mac_before_making_data.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is a screen shot of SASUniversityEdition/myfolders on a Mac. Focus on the bottom line of Finder:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mac_location_closeup.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27681iA9263844407C1EAD/image-size/large?v=v2&amp;amp;px=999" role="button" title="mac_location_closeup.png" alt="mac_location_closeup.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The name of the shared folder is in a very long Macintosh path for a student named Lee. So he's placed his SASUniversityEdition folder in&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;/Documents/Documents - Lee's iMac/SASUniversityEdition/myfolders&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;and then in that location unzipped the EPG194 zip file so he's got a subfolder also called EPG194 and then under THAT folder are more folders called: activities, data, demos, output, practices, as shown in the Finder window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It would be incorrect to use ANY of the full Mac path in any code, just as it was incorrect in my first screen shot to use any of my C: drive location in the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; To find the name of the folder you're interested in (or of the individual file you're interested in), in SAS University Edition,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="find_properties.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27682iCCCF75D221CD3988/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_properties.png" alt="find_properties.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note that you do NOT see any part of the Mac file or folder names in the Location pane.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; First indication of a problem -- do you see My Folders at the top of the Server Files and Folders pane? If so, that is good, it means you've defined your shared folder location correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Second thing to check -- do you see your file or folder of interest underneath the My Folders location? If yes, even better -- now you just have to do the Properties step to get the location you need. But if you do NOT see you file or folder underneath the My Folders location, it's a good time to use Finder and locate your file on the Mac file system and then MOVE it to your shared folder location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Third thing to check -- is everything spelled right and in the right case? There is a difference between:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;/folders/myfolder&amp;nbsp; &amp;nbsp;--&amp;gt; No trailing s&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;folder/myfolders&amp;nbsp; &amp;nbsp;--&amp;gt; no leading slash, folder instead of /folders/myfolders&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;/folders/myfoldres&amp;nbsp; --&amp;gt; myfolders misspelled as myfoldres&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;/folders/my folders&amp;nbsp; --&amp;gt; no space in myfolders&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;/folders/myfolders&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bottom line, if you can see your data file for the INFILE statement in your /folders/myfolders location inside SAS Studio, then ALL you need to do to get the correct info for the INFILE statement is right click on the file name, choose Properties, and look at the fully qualified name that you see in the Properties window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you do NOT see your file in the /folders/myfolders location, then you need to get it there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 20:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/I-need-help-using-infile-with-txt-file-on-mac-SAS-University/m-p/540568#M7162</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-03-05T20:18:48Z</dc:date>
    </item>
  </channel>
</rss>

