<?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 Having problem with proc import in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Having-problem-with-proc-import/m-p/35694#M7061</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am a beginner with SAS and my knowledge is limited.&lt;BR /&gt;
&lt;BR /&gt;
I have got a fairly simple data in excel file. It has got quite a few missing values and blank cells.&lt;BR /&gt;
&lt;BR /&gt;
There are 5 variables. Each variable has 5 reading. In excel, it is in a format of 5X5 table.&lt;BR /&gt;
One of the variable starts with  a blank cell(no text in the cell) and the other with missing value (by missing value, I mean a '.')&lt;BR /&gt;
&lt;BR /&gt;
I have used proc import to read in this data from excel to sas.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The problem I faced was that SAS didn't read 1st and last values of Variable B. Varible B was like this:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;B&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
1&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
6&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Then I tried 'Mixed=Yes' option in proc import, it read in all the values for Variable B, but when I looked it in the viewtable, the values for B, C , D and E are left-aligned i.e. SAS has read it as a text variable, but it was a number variable.&lt;BR /&gt;
&lt;BR /&gt;
I am sheerly confused now!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Can anyone help me out please?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance&lt;BR /&gt;
SAS_Beginner</description>
    <pubDate>Fri, 22 May 2009 15:37:15 GMT</pubDate>
    <dc:creator>SAS_Beginner</dc:creator>
    <dc:date>2009-05-22T15:37:15Z</dc:date>
    <item>
      <title>Having problem with proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Having-problem-with-proc-import/m-p/35694#M7061</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am a beginner with SAS and my knowledge is limited.&lt;BR /&gt;
&lt;BR /&gt;
I have got a fairly simple data in excel file. It has got quite a few missing values and blank cells.&lt;BR /&gt;
&lt;BR /&gt;
There are 5 variables. Each variable has 5 reading. In excel, it is in a format of 5X5 table.&lt;BR /&gt;
One of the variable starts with  a blank cell(no text in the cell) and the other with missing value (by missing value, I mean a '.')&lt;BR /&gt;
&lt;BR /&gt;
I have used proc import to read in this data from excel to sas.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The problem I faced was that SAS didn't read 1st and last values of Variable B. Varible B was like this:&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;B&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
1&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
.&lt;BR /&gt;
6&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Then I tried 'Mixed=Yes' option in proc import, it read in all the values for Variable B, but when I looked it in the viewtable, the values for B, C , D and E are left-aligned i.e. SAS has read it as a text variable, but it was a number variable.&lt;BR /&gt;
&lt;BR /&gt;
I am sheerly confused now!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Can anyone help me out please?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance&lt;BR /&gt;
SAS_Beginner</description>
      <pubDate>Fri, 22 May 2009 15:37:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Having-problem-with-proc-import/m-p/35694#M7061</guid>
      <dc:creator>SAS_Beginner</dc:creator>
      <dc:date>2009-05-22T15:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Having problem with proc import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Having-problem-with-proc-import/m-p/35695#M7062</link>
      <description>For assistance, you will need to reply to your post providing SAS log output with the SAS-generated DATA step code from the PROC IMPORT (pasted in your reply from your SAS session log).  Adding a simple PROC CONTENTS; RUN; after the import code would also help, and activating the SAS OPTIONS setting SOURCE is important to generate as much SAS log diagnostics as possible.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 25 May 2009 16:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Having-problem-with-proc-import/m-p/35695#M7062</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-25T16:01:42Z</dc:date>
    </item>
  </channel>
</rss>

