<?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: Unable to import one variable value in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-one-variable-value-in-SAS/m-p/178730#M34159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look in the online help for Microsoft Excel Workbook Files on how to set the WINDOWS registry to look at more rows before assigning a column type. The type is basically controlled by the MS application, NOT SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or export the data to CSV and use a larger value for guessing rows on import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The whole direct Excel to SAS import using proc import is fairly limited for your control so there are oddities that can occur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Aug 2014 18:39:01 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2014-08-28T18:39:01Z</dc:date>
    <item>
      <title>Unable to import one variable value in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-one-variable-value-in-SAS/m-p/178727#M34156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif; font-size: 12pt;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif; font-size: 12pt;"&gt;I would request your help with the following SAS query, I am able to import all variable values from the .xls file except one (Interest_outstanding) using proc import statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif; font-size: 12pt;"&gt;My code is..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif; font-size: 12pt;"&gt;libname SAS "&lt;SPAN style="font-family: 'comic sans ms', sans-serif; font-size: 15.555556297302246px;"&gt;C:\Users\mrinal\Desktop\test";&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif; font-size: 12pt;"&gt;proc import datafile = "C:\Users\mrinal\Desktop\test\Badahar.xls"&amp;nbsp; out=SAS.g1 ;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'comic sans ms', sans-serif;"&gt;Request your help on this. Attached is the .xls file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'comic sans ms', sans-serif; font-size: 12pt;"&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 15:22:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-one-variable-value-in-SAS/m-p/178727#M34156</guid>
      <dc:creator>Mrinal</dc:creator>
      <dc:date>2014-08-28T15:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import one variable value in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-one-variable-value-in-SAS/m-p/178728#M34157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS analyzed first 5 rows to determine variable format. Your 1st 5 values are blank and SAS assign to this variable Character.&lt;/P&gt;&lt;P&gt;Enter 0 (zero)&amp;nbsp; for Interest_outstanding in first row and save file. Now you will be able to import it correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 15:42:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-one-variable-value-in-SAS/m-p/178728#M34157</guid>
      <dc:creator>karabas</dc:creator>
      <dc:date>2014-08-28T15:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import one variable value in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-one-variable-value-in-SAS/m-p/178729#M34158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if i assume that the following things imply:&lt;/P&gt;&lt;P&gt;blank= data missing for the variable&lt;/P&gt;&lt;P&gt;0= zero value&amp;nbsp; for that particular observation and&lt;/P&gt;&lt;P&gt;x = any other number.&lt;/P&gt;&lt;P&gt;So putting a zero in the first row would imply that the value will be taken as zero where as actually, the data might be missing. Any other way to go about this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 15:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-one-variable-value-in-SAS/m-p/178729#M34158</guid>
      <dc:creator>Mrinal</dc:creator>
      <dc:date>2014-08-28T15:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import one variable value in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-one-variable-value-in-SAS/m-p/178730#M34159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look in the online help for Microsoft Excel Workbook Files on how to set the WINDOWS registry to look at more rows before assigning a column type. The type is basically controlled by the MS application, NOT SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or export the data to CSV and use a larger value for guessing rows on import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The whole direct Excel to SAS import using proc import is fairly limited for your control so there are oddities that can occur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 18:39:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-one-variable-value-in-SAS/m-p/178730#M34159</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-08-28T18:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import one variable value in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-one-variable-value-in-SAS/m-p/178731#M34160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked for me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import datafile = "C:\temp\Badahar.xls" &lt;STRONG&gt;dbms=xls&lt;/STRONG&gt; replace out=x ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import datafile = "C:\temp\Badahar.xls" &lt;STRONG&gt;dbms=excel&lt;/STRONG&gt; replace out=x ;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mixed=yes;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 14:21:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-one-variable-value-in-SAS/m-p/178731#M34160</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-08-29T14:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import one variable value in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-one-variable-value-in-SAS/m-p/178732#M34161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. &lt;/P&gt;&lt;P&gt;Yes, both the codes are working for me. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 14:35:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-import-one-variable-value-in-SAS/m-p/178732#M34161</guid>
      <dc:creator>Mrinal</dc:creator>
      <dc:date>2014-08-29T14:35:44Z</dc:date>
    </item>
  </channel>
</rss>

