<?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: SAS reading in date as character 9, having trouble converting in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-date-as-character-9-having-trouble-converting/m-p/101010#M21147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usually import from Excel will do this because there are missing values that make the cell look like character rather than number.&amp;nbsp; Part of the problem with using Excel as your data source.&amp;nbsp; Spreadsheets allow each cell to be independently typed, but SAS and databases require that columns (variables) be of a consistent variable type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Aug 2013 13:30:23 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2013-08-05T13:30:23Z</dc:date>
    <item>
      <title>SAS reading in date as character 9, having trouble converting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-date-as-character-9-having-trouble-converting/m-p/101007#M21144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; So I am importing from excel a date variable which is 1/1/2011 format. SAS reads it in as a character 9 format. When I try to convert it, it always gives me errors. Ive tried doing input(date,f9.0), creating a new variable called newdate, formatting it as date9. (I want it as date9) and then saying newdate=date, etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 12:43:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-date-as-character-9-having-trouble-converting/m-p/101007#M21144</guid>
      <dc:creator>Xamius32</dc:creator>
      <dc:date>2013-08-05T12:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading in date as character 9, having trouble converting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-date-as-character-9-having-trouble-converting/m-p/101008#M21145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use a date format for the INPUT() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newdate = input(date,mmddyy10.);&lt;/P&gt;&lt;P&gt;format newdate date9. ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But 9 characters is not enough to store data in MM/DD/YYYY format.&amp;nbsp; If you have data with two digit month and two digit day you will lose the last character of the year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 12:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-date-as-character-9-having-trouble-converting/m-p/101008#M21145</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-08-05T12:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading in date as character 9, having trouble converting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-date-as-character-9-having-trouble-converting/m-p/101009#M21146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excel has it as 1/1/2001 and it never gets bigger than 9 because the day is always the 1st. It is interesting that it actually works for 2 of the files I have, with the excel formatting being the exact same, and from what I can see no inconsitincies in the actual data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 12:54:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-date-as-character-9-having-trouble-converting/m-p/101009#M21146</guid>
      <dc:creator>Xamius32</dc:creator>
      <dc:date>2013-08-05T12:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading in date as character 9, having trouble converting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-date-as-character-9-having-trouble-converting/m-p/101010#M21147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usually import from Excel will do this because there are missing values that make the cell look like character rather than number.&amp;nbsp; Part of the problem with using Excel as your data source.&amp;nbsp; Spreadsheets allow each cell to be independently typed, but SAS and databases require that columns (variables) be of a consistent variable type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 13:30:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-date-as-character-9-having-trouble-converting/m-p/101010#M21147</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-08-05T13:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading in date as character 9, having trouble converting</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-date-as-character-9-having-trouble-converting/m-p/101011#M21148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are the errors showing up only on certain records, or the entire column?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 20:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-date-as-character-9-having-trouble-converting/m-p/101011#M21148</guid>
      <dc:creator>Fugue</dc:creator>
      <dc:date>2013-08-05T20:08:38Z</dc:date>
    </item>
  </channel>
</rss>

