<?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: character ad numeric data. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/character-ad-numeric-data/m-p/55485#M11803</link>
    <description>option &lt;BR /&gt;
   mixed=yes&lt;BR /&gt;
should allow the entire column to be treated as text.&lt;BR /&gt;
 &lt;BR /&gt;
Have you considered using the excel libname engine?&lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
    <pubDate>Fri, 17 Jul 2009 12:24:21 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2009-07-17T12:24:21Z</dc:date>
    <item>
      <title>character ad numeric data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/character-ad-numeric-data/m-p/55484#M11802</link>
      <description>I use proc import to create sas datasets from excel files.&lt;BR /&gt;
One of the fields patient_id , the first two records are 0711F08* and the rest of the records are numbers. SAS leaves a blank for the first two records for the patient id.&lt;BR /&gt;
Without manually changing the data, is there anyway to import all the records?</description>
      <pubDate>Thu, 16 Jul 2009 21:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/character-ad-numeric-data/m-p/55484#M11802</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-07-16T21:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: character ad numeric data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/character-ad-numeric-data/m-p/55485#M11803</link>
      <description>option &lt;BR /&gt;
   mixed=yes&lt;BR /&gt;
should allow the entire column to be treated as text.&lt;BR /&gt;
 &lt;BR /&gt;
Have you considered using the excel libname engine?&lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
      <pubDate>Fri, 17 Jul 2009 12:24:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/character-ad-numeric-data/m-p/55485#M11803</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-07-17T12:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: character ad numeric data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/character-ad-numeric-data/m-p/55486#M11804</link>
      <description>Peter,&lt;BR /&gt;
 Thanks for the help.When I use  option mixed =yes, the date filed is giving me a funky output. The first two values in the data field as shown below are displayed as &lt;BR /&gt;
39980 (instead of 06/16/2009)&lt;BR /&gt;
39993 (instead of 06/29/2009)&lt;BR /&gt;
&lt;BR /&gt;
The rest of the date values are displayed correctly!</description>
      <pubDate>Fri, 17 Jul 2009 15:09:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/character-ad-numeric-data/m-p/55486#M11804</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-07-17T15:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: character ad numeric data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/character-ad-numeric-data/m-p/55487#M11805</link>
      <description>&amp;gt; Peter,&lt;BR /&gt;
&amp;gt; Thanks for the help.When I use  option mixed =yes,&lt;BR /&gt;
&amp;gt; the date filed is giving me a funky output. The&lt;BR /&gt;
&amp;gt; first two values in the data field as shown below&lt;BR /&gt;
&amp;gt;  are displayed as &lt;BR /&gt;
&amp;gt; 39980 (instead of 06/16/2009)&lt;BR /&gt;
&amp;gt; 39993 (instead of 06/29/2009)&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; The rest of the date values are displayed correctly!&lt;BR /&gt;
&lt;BR /&gt;
Apply a SAS date FORMAT to the variable, MMDDYY10. would work, to display as human useable date. Those values are the SAS day offset values it uses for numerical purposes. Notice that they differ by 13 matching the date difference.</description>
      <pubDate>Fri, 17 Jul 2009 15:20:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/character-ad-numeric-data/m-p/55487#M11805</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2009-07-17T15:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: character ad numeric data.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/character-ad-numeric-data/m-p/55488#M11806</link>
      <description>Note that 39980 is 17JUN2069, not 16JUN2009.&lt;BR /&gt;
&lt;BR /&gt;
The reason would be that excel counts days from 1/1/1900, whereas sas counts them from 1/1/1960, so the excel value has 60 more years into it. Not sure how you got to read 39980 in the 1st place, or why there is still a day difference, but now that you know the rule, you should be able to corrrect the date using function intnx.</description>
      <pubDate>Wed, 22 Jul 2009 02:51:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/character-ad-numeric-data/m-p/55488#M11806</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2009-07-22T02:51:03Z</dc:date>
    </item>
  </channel>
</rss>

