<?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 Numeric data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-data/m-p/32271#M7748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Art297.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2011 21:11:13 GMT</pubDate>
    <dc:creator>ren2010</dc:creator>
    <dc:date>2011-10-20T21:11:13Z</dc:date>
    <item>
      <title>Numeric data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-data/m-p/32269#M7746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset with a numeric variable&amp;nbsp; with informat and format of 9.This numeric field has date value as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date_var&lt;/P&gt;&lt;P&gt;20051020&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to read in the variable in a Data step and change the format&amp;nbsp; of date_var to mmddyy10. and&amp;nbsp; created the dataset,but when I opened&amp;nbsp; the dataset&amp;nbsp; the value of date_var is showing in bestw format.&lt;/P&gt;&lt;P&gt;ie in my output dataset I am seeing the value of date_var as 20051020 instead of 10/20/2005.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also noticed in the log that there was a message when I opened the output dataset ,ie : Error in Format,bestw used instead.&lt;/P&gt;&lt;P&gt;Any idea why this is happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 20:52:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-data/m-p/32269#M7746</guid>
      <dc:creator>ren2010</dc:creator>
      <dc:date>2011-10-20T20:52:11Z</dc:date>
    </item>
    <item>
      <title>Numeric data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-data/m-p/32270#M7747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you read your dates as numbers.&amp;nbsp; Thus, you have to use the input and put functions to convert them to date values.&amp;nbsp; E.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input date_var;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;20051020&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format date_var mmddyy10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; date_var=input(put(date_var,z8.),yymmdd8.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 20:59:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-data/m-p/32270#M7747</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-20T20:59:13Z</dc:date>
    </item>
    <item>
      <title>Numeric data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numeric-data/m-p/32271#M7748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Art297.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 21:11:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numeric-data/m-p/32271#M7748</guid>
      <dc:creator>ren2010</dc:creator>
      <dc:date>2011-10-20T21:11:13Z</dc:date>
    </item>
  </channel>
</rss>

