<?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: How to read data set downloaded to SAS 9.4? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/442224#M282713</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/188695"&gt;@jc3992&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;But why would this become like this ?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Attention to detail. You probably had the / in the DirData before or in the path.&lt;/P&gt;
&lt;P&gt;If you're just starting out, I don't recommend using macro variables at the beginning. List your paths out fully, understand the basics and extend out from there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Mar 2018 02:22:10 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-03-05T02:22:10Z</dc:date>
    <item>
      <title>How to read data set downloaded to SAS 9.4?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/442211#M282707</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started to use SAS 9.4 few days ago.&lt;/P&gt;&lt;P&gt;I have some problems with the difference between dirdata, libname perm, and the external data sets which I downloaded in my computer (C drive).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I was using was:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let dirdata=C:/Users/jc3992/Downloads;


* From week 4: ;
data expenses;
	infile "&amp;amp;dirdata.expensesArray.csv" 
		dlm="," DSD firstobs=2 termstr=CRLF;
	length ResortName $26 Resort $8;
	input ResortName Resort OffSeason1-OffSeason6;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The LOG was as below:&lt;/P&gt;&lt;PRE&gt;1679  data expenses;
1680      infile "&amp;amp;dirdata.expensesArray.csv"
1681          dlm="," DSD firstobs=2 termstr=CRLF;
1682      length ResortName $26 Resort $8;
1683      input ResortName Resort OffSeason1-OffSeason6;
1684  run;

ERROR: Physical file does not exist, C:\Users\jc3992\DownloadsexpensesArray.csv.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.EXPENSES may be incomplete.  When this step was stopped there were 0
         observations and 8 variables.
WARNING: Data set WORK.EXPENSES was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

&lt;/PRE&gt;&lt;P&gt;I did not know why it made sense to me that I had defined the path, but SAS could not read it in.&lt;/P&gt;&lt;P&gt;Had stuck in it several hours lol&lt;/P&gt;&lt;P&gt;I wonder if anyone would kindly help me out?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!! Any assistance would be appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 01:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/442211#M282707</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-05T01:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data set downloaded to SAS 9.4?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/442213#M282708</link>
      <description>&lt;P&gt;Try adding an extra dot in your infile&amp;nbsp;statement after the macro variable like so&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let dirdata=C:/Users/jc3992/Downloads;


* From week 4: ;
data expenses;
	infile "&amp;amp;dirdata..expensesArray.csv" 
		dlm="," DSD firstobs=2 termstr=CRLF;
	length ResortName $26 Resort $8;
	input ResortName Resort OffSeason1-OffSeason6;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The first dot will be consumed by the macro processor which is why it's not formulating your pathname/filename correctly&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 01:36:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/442213#M282708</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2018-03-05T01:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data set downloaded to SAS 9.4?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/442216#M282709</link>
      <description>&lt;PRE&gt;      Physical Name: C:\Users\jc3992\Downloads
1751  data expenses;
1752      infile "&amp;amp;dirdata..expensesArray.csv"
1753          dlm="," DSD firstobs=2 termstr=CRLF;
1754      length ResortName $26 Resort $8;
1755      input ResortName Resort OffSeason1-OffSeason6;
1756  run;

ERROR: Physical file does not exist, C:\Users\jc3992\Downloads.expensesArray.csv.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.EXPENSES may be incomplete.  When this step was stopped there were 0
         observations and 8 variables.
WARNING: Data set WORK.EXPENSES was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds&lt;/PRE&gt;&lt;P&gt;Thanks but....it did not work still...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 01:49:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/442216#M282709</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-05T01:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data set downloaded to SAS 9.4?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/442217#M282710</link>
      <description>&lt;P&gt;OK try this then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data expenses;
	infile "&amp;amp;dirdata/expensesArray.csv" 
		dlm="," DSD firstobs=2 termstr=CRLF;
	length ResortName $26 Resort $8;
	input ResortName Resort OffSeason1-OffSeason6;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Mar 2018 01:53:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/442217#M282710</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2018-03-05T01:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data set downloaded to SAS 9.4?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/442222#M282711</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let dirdata=C:/Users/jc3992/Downloads;
data expenses;
	infile "&amp;amp;dirdata/expensesArray.csv" 
		dlm="," DSD firstobs=2 termstr=CRLF;
	length ResortName $26 Resort $8;
	input ResortName Resort OffSeason1-OffSeason6;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Finally....&lt;/P&gt;&lt;P&gt;it worked&amp;nbsp; Q___Q&lt;/P&gt;&lt;P&gt;I can go home for dinner lol&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!!!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 02:09:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/442222#M282711</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-05T02:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data set downloaded to SAS 9.4?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/442223#M282712</link>
      <description>&lt;P&gt;But why would this become like this ?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 02:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/442223#M282712</guid>
      <dc:creator>jc3992</dc:creator>
      <dc:date>2018-03-05T02:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data set downloaded to SAS 9.4?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/442224#M282713</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/188695"&gt;@jc3992&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;But why would this become like this ?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Attention to detail. You probably had the / in the DirData before or in the path.&lt;/P&gt;
&lt;P&gt;If you're just starting out, I don't recommend using macro variables at the beginning. List your paths out fully, understand the basics and extend out from there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 02:22:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-set-downloaded-to-SAS-9-4/m-p/442224#M282713</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-05T02:22:10Z</dc:date>
    </item>
  </channel>
</rss>

