<?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: Having trouble with INFORMAT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Having-trouble-with-INFORMAT/m-p/603234#M174786</link>
    <description>&lt;P&gt;When posting data, use the window opened with the {i} button. The main posting window compresses whitespace (blanks, tabs), so the data as posted does not match your input statement at all.&lt;/P&gt;
&lt;P&gt;Similarly, use the "little running man" for code. This keeps the code "as is" and adds coloring like the Enhanced Editor.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2019 15:01:57 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-11-11T15:01:57Z</dc:date>
    <item>
      <title>Having trouble with INFORMAT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Having-trouble-with-INFORMAT/m-p/603197#M174762</link>
      <description>&lt;P&gt;Reading a data file into SAS. 1st 2 datalines are as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 New York 07/19/1966 05/10/2015 107 No&lt;BR /&gt;2 New Jersey 11/10/1964 . 130 Yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code I've written:&lt;/P&gt;&lt;P&gt;DATA Homwrk1;&lt;BR /&gt;INFILE '/folders/myfolders/hw1_data.txt';&lt;BR /&gt;INPUT @1 ID SITE $ 5-14 &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/162406"&gt;@20&lt;/a&gt; DOB @35 START &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/290987"&gt;@50&lt;/a&gt; GLUCOSE @57 DIABETES $;&lt;BR /&gt;INFORMAT DOB START MMDDYY10.;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output on date variables is giving me days before/since Jan 1, 1960. Isn't INFORMAT supposed to correct this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance -&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Having-trouble-with-INFORMAT/m-p/603197#M174762</guid>
      <dc:creator>Newtrix</dc:creator>
      <dc:date>2019-11-11T13:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with INFORMAT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Having-trouble-with-INFORMAT/m-p/603204#M174769</link>
      <description>&lt;P&gt;No. Informat tells SAS how to read data. The FORMAT statement tells SAS how to display variable values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:56:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Having-trouble-with-INFORMAT/m-p/603204#M174769</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2019-11-11T13:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with INFORMAT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Having-trouble-with-INFORMAT/m-p/603206#M174770</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 14:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Having-trouble-with-INFORMAT/m-p/603206#M174770</guid>
      <dc:creator>Newtrix</dc:creator>
      <dc:date>2019-11-11T14:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with INFORMAT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Having-trouble-with-INFORMAT/m-p/603215#M174777</link>
      <description>Hi:&lt;BR /&gt; INFORMAT tells SAS how to read IN the "raw" data (meaning what pattern or format is the data in when SAS is reading it). The FORMAT tells SAS how to display or show the data on reports. If you want your dates to be displayed in procedure output as readable dates (instead of the number of days since Jan 1, 1960), then you need to also have a FORMAT statement in your code.&lt;BR /&gt;Cynthia</description>
      <pubDate>Mon, 11 Nov 2019 14:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Having-trouble-with-INFORMAT/m-p/603215#M174777</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-11-11T14:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Having trouble with INFORMAT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Having-trouble-with-INFORMAT/m-p/603234#M174786</link>
      <description>&lt;P&gt;When posting data, use the window opened with the {i} button. The main posting window compresses whitespace (blanks, tabs), so the data as posted does not match your input statement at all.&lt;/P&gt;
&lt;P&gt;Similarly, use the "little running man" for code. This keeps the code "as is" and adds coloring like the Enhanced Editor.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 15:01:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Having-trouble-with-INFORMAT/m-p/603234#M174786</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-11T15:01:57Z</dc:date>
    </item>
  </channel>
</rss>

