<?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 strange things in using INFORMAT. in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/strange-things-in-using-INFORMAT/m-p/581#M274</link>
    <description>Hi,&lt;BR /&gt;
I tried the code below where the informat statement was used:&lt;BR /&gt;
*------------;&lt;BR /&gt;
data name;&lt;BR /&gt;
informat FirstName $8. LastName $15. date mmddyy8. n2 7.3;&lt;BR /&gt;
input firstname $ lastname $ date n2;&lt;BR /&gt;
datalines;&lt;BR /&gt;
a b 010101 100&lt;BR /&gt;
;&lt;BR /&gt;
*------------;&lt;BR /&gt;
All the variables are displayed correctly except date. It displayed as a strange numeric value 14976 instead of a date format. Can anyone give some hints on where is wrong?&lt;BR /&gt;
Thanks!&lt;BR /&gt;
gim</description>
    <pubDate>Tue, 09 May 2006 17:29:10 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2006-05-09T17:29:10Z</dc:date>
    <item>
      <title>strange things in using INFORMAT.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/strange-things-in-using-INFORMAT/m-p/581#M274</link>
      <description>Hi,&lt;BR /&gt;
I tried the code below where the informat statement was used:&lt;BR /&gt;
*------------;&lt;BR /&gt;
data name;&lt;BR /&gt;
informat FirstName $8. LastName $15. date mmddyy8. n2 7.3;&lt;BR /&gt;
input firstname $ lastname $ date n2;&lt;BR /&gt;
datalines;&lt;BR /&gt;
a b 010101 100&lt;BR /&gt;
;&lt;BR /&gt;
*------------;&lt;BR /&gt;
All the variables are displayed correctly except date. It displayed as a strange numeric value 14976 instead of a date format. Can anyone give some hints on where is wrong?&lt;BR /&gt;
Thanks!&lt;BR /&gt;
gim</description>
      <pubDate>Tue, 09 May 2006 17:29:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/strange-things-in-using-INFORMAT/m-p/581#M274</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-05-09T17:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: strange things in using INFORMAT.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/strange-things-in-using-INFORMAT/m-p/582#M275</link>
      <description>SAS stores a date internally as the number of days since January 1, 1960.  If you don't give the variable a format when you print it, you will get the internally stored value.  Try printing with the mmddyy10. format.</description>
      <pubDate>Tue, 09 May 2006 17:46:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/strange-things-in-using-INFORMAT/m-p/582#M275</guid>
      <dc:creator>garybald</dc:creator>
      <dc:date>2006-05-09T17:46:17Z</dc:date>
    </item>
  </channel>
</rss>

