<?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 Help with importing excel file into sas in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-importing-excel-file-into-sas/m-p/390089#M66101</link>
    <description>&lt;P&gt;Hello. I am new to SAS. I created a dataset that has 750 observations and 14 variables in excel. I saved it as a .csv file and imported it into SAS using the import wizard. The dataset was created, but there are now 835 obersvations. I have missing values, which are entered as (.) in the observations 1 to 750. However, SAS added new observations all with missing values (.) across all 14 variables. Can anyone help me understand what I might have done wrong and/or why SAS added over 100 new observations all with missing values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for you time and consideration.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2017 03:27:45 GMT</pubDate>
    <dc:creator>violet77</dc:creator>
    <dc:date>2017-08-23T03:27:45Z</dc:date>
    <item>
      <title>Help with importing excel file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-importing-excel-file-into-sas/m-p/390089#M66101</link>
      <description>&lt;P&gt;Hello. I am new to SAS. I created a dataset that has 750 observations and 14 variables in excel. I saved it as a .csv file and imported it into SAS using the import wizard. The dataset was created, but there are now 835 obersvations. I have missing values, which are entered as (.) in the observations 1 to 750. However, SAS added new observations all with missing values (.) across all 14 variables. Can anyone help me understand what I might have done wrong and/or why SAS added over 100 new observations all with missing values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for you time and consideration.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 03:27:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-importing-excel-file-into-sas/m-p/390089#M66101</guid>
      <dc:creator>violet77</dc:creator>
      <dc:date>2017-08-23T03:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help with importing excel file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-importing-excel-file-into-sas/m-p/390098#M66102</link>
      <description>&lt;P&gt;You could just import the Excel file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import out=myExcel file='path to excel' dbms=xlsx replace; sheet='Sheet1';run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Another option, is in your PROC IMPORT set GUESSINGROWS to a really large number.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And another option, after you run the PROC IMPORT, check your log. Take that code and modify it as necessary. Make sure it matches what you expect from your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/160330"&gt;@violet77&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello. I am new to SAS. I created a dataset that has 750 observations and 14 variables in excel. I saved it as a .csv file and imported it into SAS using the import wizard. The dataset was created, but there are now 835 obersvations. I have missing values, which are entered as (.) in the observations 1 to 750. However, SAS added new observations all with missing values (.) across all 14 variables. Can anyone help me understand what I might have done wrong and/or why SAS added over 100 new observations all with missing values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for you time and consideration.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2017 04:20:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-importing-excel-file-into-sas/m-p/390098#M66102</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-23T04:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help with importing excel file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-importing-excel-file-into-sas/m-p/390984#M66194</link>
      <description>&lt;P&gt;The issue with the CSV is actually caused by Excel. I call these Phantom rows or columns.&lt;/P&gt;
&lt;P&gt;If you enter data into a row or column in Excel and then delete the values Excel apparently keeps track of those as "used" rows or columns and exports them when saved to CSV.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One option is to open the csv in a text editor and delete the rows.&lt;/P&gt;
&lt;P&gt;Another option is to use the code generated by proc import and modify it so that that you delete the row if all of the values, or if there is a variable or combination&amp;nbsp;that should always be present,&amp;nbsp;are missing&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 17:26:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-importing-excel-file-into-sas/m-p/390984#M66194</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-25T17:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help with importing excel file into sas</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-with-importing-excel-file-into-sas/m-p/390993#M66195</link>
      <description>Hello.&lt;BR /&gt;&lt;BR /&gt;Thank you very much for taking time to respond to my question.&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Aug 2017 18:43:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-with-importing-excel-file-into-sas/m-p/390993#M66195</guid>
      <dc:creator>violet77</dc:creator>
      <dc:date>2017-08-25T18:43:21Z</dc:date>
    </item>
  </channel>
</rss>

