<?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: importing data when variable has different  data types in excel sheets? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/importing-data-when-variable-has-different-data-types-in-excel/m-p/285800#M58500</link>
    <description>Hi:&lt;BR /&gt;  What code have you tried? Easiest way would be to fix the format of the column in Excel to be a type of date and then if the only character value is the column header, PROC IMPORT or the LIBNAME engine should be able to read the date value correctly.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
    <pubDate>Wed, 20 Jul 2016 12:57:14 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2016-07-20T12:57:14Z</dc:date>
    <item>
      <title>importing data when variable has different  data types in excel sheets?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-data-when-variable-has-different-data-types-in-excel/m-p/285796#M58498</link>
      <description>&lt;P&gt;&amp;nbsp;I need to extract this data from excel file. the thing is, in the below variables the &lt;FONT color="#0000FF"&gt;date&lt;/FONT&gt; variable consists of both numeric and charater data type. while iam reading into sas ,i am getting only few records. &amp;nbsp;i should get all records into sas data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you please help me ?&lt;/P&gt;&lt;P&gt;the below attchement consists of sample of my data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;particulars&lt;/TD&gt;&lt;TD&gt;chequeNO/OrderNo&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23/06/06&lt;/TD&gt;&lt;TD&gt;received&lt;/TD&gt;&lt;TD&gt;234554&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/8/2006&lt;/TD&gt;&lt;TD&gt;received&lt;/TD&gt;&lt;TD&gt;798242&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12/8/2006&lt;/TD&gt;&lt;TD&gt;received&lt;/TD&gt;&lt;TD&gt;985795&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20/08/06&lt;/TD&gt;&lt;TD&gt;received&lt;/TD&gt;&lt;TD&gt;298489&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;26/08/06&lt;/TD&gt;&lt;TD&gt;received&lt;/TD&gt;&lt;TD&gt;988323&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;28/08/06&lt;/TD&gt;&lt;TD&gt;received&lt;/TD&gt;&lt;TD&gt;248927&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;31/08/06&lt;/TD&gt;&lt;TD&gt;received&lt;/TD&gt;&lt;TD&gt;598332&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5/9/2006&lt;/TD&gt;&lt;TD&gt;received&lt;/TD&gt;&lt;TD&gt;284729&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3/9/2006&lt;/TD&gt;&lt;TD&gt;received&lt;/TD&gt;&lt;TD&gt;287492&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15/9/2006&lt;/TD&gt;&lt;TD&gt;received&lt;/TD&gt;&lt;TD&gt;279872&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/9/2006&lt;/TD&gt;&lt;TD&gt;received&lt;/TD&gt;&lt;TD&gt;258202&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/9/2006&lt;/TD&gt;&lt;TD&gt;received&lt;/TD&gt;&lt;TD&gt;928590&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1/11/2006&lt;/TD&gt;&lt;TD&gt;received&lt;/TD&gt;&lt;TD&gt;209842&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5/12/2006&lt;/TD&gt;&lt;TD&gt;received&lt;/TD&gt;&lt;TD&gt;595972&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5/12/2006&lt;/TD&gt;&lt;TD&gt;received&lt;/TD&gt;&lt;TD&gt;902892&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20/12/06&lt;/TD&gt;&lt;TD&gt;received&lt;/TD&gt;&lt;TD&gt;298297&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 12:42:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-data-when-variable-has-different-data-types-in-excel/m-p/285796#M58498</guid>
      <dc:creator>praveenkotte</dc:creator>
      <dc:date>2016-07-20T12:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: importing data when variable has different  data types in excel sheets?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-data-when-variable-has-different-data-types-in-excel/m-p/285800#M58500</link>
      <description>Hi:&lt;BR /&gt;  What code have you tried? Easiest way would be to fix the format of the column in Excel to be a type of date and then if the only character value is the column header, PROC IMPORT or the LIBNAME engine should be able to read the date value correctly.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
      <pubDate>Wed, 20 Jul 2016 12:57:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-data-when-variable-has-different-data-types-in-excel/m-p/285800#M58500</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-07-20T12:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: importing data when variable has different  data types in excel sheets?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-data-when-variable-has-different-data-types-in-excel/m-p/285807#M58504</link>
      <description>&lt;P&gt;&lt;STRONG&gt;i've tried these two codes. but instead of using libname statement, i should pull out the data using proc import or else proc sql.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to excel(path="C:\Users\siddiq\Desktop\Book1.xls");&lt;BR /&gt;create table tab as&lt;BR /&gt;select * from connection to excel&lt;BR /&gt;(&lt;BR /&gt;select * from [sheet1$]&lt;BR /&gt;);&lt;BR /&gt;disconnect from excel;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile="C:\Users\siddiq\Desktop\book1.xls"&lt;BR /&gt;out=dd&lt;BR /&gt;dbms=excel&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:11:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-data-when-variable-has-different-data-types-in-excel/m-p/285807#M58504</guid>
      <dc:creator>praveenkotte</dc:creator>
      <dc:date>2016-07-20T13:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: importing data when variable has different  data types in excel sheets?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/importing-data-when-variable-has-different-data-types-in-excel/m-p/286011#M58590</link>
      <description>&lt;P&gt;OT Because I present a SAS, WPS and R Solution&lt;/P&gt;&lt;P&gt;If interested see&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://listserv.uga.edu/cgi-bin/wa?A2=SAS-L;47be38ca.1607c" target="_blank"&gt;https://listserv.uga.edu/cgi-bin/wa?A2=SAS-L;47be38ca.1607c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 01:15:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/importing-data-when-variable-has-different-data-types-in-excel/m-p/286011#M58590</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2016-07-21T01:15:44Z</dc:date>
    </item>
  </channel>
</rss>

