<?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: Help import a csv file into sas and read all the datas in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help-import-a-csv-file-into-sas-and-read-all-the-datas/m-p/352697#M64034</link>
    <description>&lt;P&gt;Also, the file ;you attached isn't the same on you specified on the infile statement. Assuming the file you attached is the correct one, and that it's in the same location as the other file you specified, the following should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DATA ETHINICITY;
  INFILE 'C:\Users\Administrator\Downloads\Physicians_and_Surgeons_by_Race_Ethnicity_and_Practice_Location.csv'
    dlm=',' lrecl=32767 missover firstobs=2 pad;
  informat Primary_Practice_County $14.;
  informat Race_Ethnicity $36.;
  input Month $ Year Primary_Practice_County Race_Ethnicity Count_of_Licensees;
RUN;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2017 03:02:21 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2017-04-24T03:02:21Z</dc:date>
    <item>
      <title>Help import a csv file into sas and read all the datas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-import-a-csv-file-into-sas-and-read-all-the-datas/m-p/352694#M64032</link>
      <description>&lt;P&gt;Hey everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to import a dataset downloaded from California Health and Human Services&amp;nbsp;website, in csv format. The file has about 893&amp;nbsp;rows and 5&amp;nbsp;columns. I want to import the file and build a dataset, so that I can do further research. But the log keeps showing that my sas cannot read the file.("0 records were read from the infile"), and I don't know how to fix that. so Here is the i am using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA ETHINICITY;&lt;BR /&gt;INFILE 'C:\Users\Administrator\Downloads\Violent_Crime_Rate_California_2006-2010.csv'&lt;/P&gt;&lt;P&gt;lrecl=32767 missover pad;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the log:&lt;/P&gt;&lt;P&gt;The infile 'C:\Users\Administrator\Downloads\Violent_Crime_Rate_California_2006-2010.csv'&lt;BR /&gt;is:&lt;BR /&gt;Filename=C:\Users\Administrator\Downloads\Violent_Crime_Rate_California_2006-2010.csv,&lt;BR /&gt;RECFM=V,LRECL=32767,File Size (bytes)=1319201,&lt;BR /&gt;Last Modified=23Apr2017:22:22:13,&lt;BR /&gt;Create Time=23Apr2017:22:22:12&lt;/P&gt;&lt;P&gt;NOTE: 0 records were read from the infile&lt;BR /&gt;'C:\Users\Administrator\Downloads\Violent_Crime_Rate_California_2006-2010.csv'.&lt;BR /&gt;NOTE: The data set WORK.ETHINICITY has 1 observations and 0 variables.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 02:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-import-a-csv-file-into-sas-and-read-all-the-datas/m-p/352694#M64032</guid>
      <dc:creator>Phoebelee</dc:creator>
      <dc:date>2017-04-24T02:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help import a csv file into sas and read all the datas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-import-a-csv-file-into-sas-and-read-all-the-datas/m-p/352696#M64033</link>
      <description>&lt;P&gt;You don't have an input statement specifying the variables to input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didn't look at the file but, if it has a header row (i.e., a row with the variable names), you might find it easier to use proc import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 02:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-import-a-csv-file-into-sas-and-read-all-the-datas/m-p/352696#M64033</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-04-24T02:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help import a csv file into sas and read all the datas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-import-a-csv-file-into-sas-and-read-all-the-datas/m-p/352697#M64034</link>
      <description>&lt;P&gt;Also, the file ;you attached isn't the same on you specified on the infile statement. Assuming the file you attached is the correct one, and that it's in the same location as the other file you specified, the following should work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DATA ETHINICITY;
  INFILE 'C:\Users\Administrator\Downloads\Physicians_and_Surgeons_by_Race_Ethnicity_and_Practice_Location.csv'
    dlm=',' lrecl=32767 missover firstobs=2 pad;
  informat Primary_Practice_County $14.;
  informat Race_Ethnicity $36.;
  input Month $ Year Primary_Practice_County Race_Ethnicity Count_of_Licensees;
RUN;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 03:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-import-a-csv-file-into-sas-and-read-all-the-datas/m-p/352697#M64034</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-04-24T03:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help import a csv file into sas and read all the datas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-import-a-csv-file-into-sas-and-read-all-the-datas/m-p/352947#M64044</link>
      <description>Thank you so much! I do attach a wrong file, and I should have checked it carefully, but it perfectly solved my problem!</description>
      <pubDate>Mon, 24 Apr 2017 17:12:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-import-a-csv-file-into-sas-and-read-all-the-datas/m-p/352947#M64044</guid>
      <dc:creator>Phoebelee</dc:creator>
      <dc:date>2017-04-24T17:12:29Z</dc:date>
    </item>
  </channel>
</rss>

