<?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 Informat acting funny!! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Informat-acting-funny/m-p/125956#M25676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="summary"&gt;Hey guys, &lt;/P&gt;&lt;P class="summary"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was training a few of my interns and we were working on infile using cards. I landed up at the code below and it surprisingly is working fine against all logic. Can anyone help me solve this mystery? Despite the fact that I have specified Date7. in my informat, I'm able to read the dates right, which are in date9.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test; &lt;BR /&gt;informat DepartureDate date7. ; &lt;BR /&gt;length country $11.; &lt;BR /&gt;format DepartureDate date9. ; &lt;BR /&gt;input Country $ DepartureDate blah $; &lt;BR /&gt;cards; &lt;BR /&gt;Japan 13may2000 a &lt;BR /&gt;New_Zealand 03feb2001 b &lt;BR /&gt;Brazil 28feb2001 c &lt;BR /&gt;Italy 25apr2001 z &lt;BR /&gt;USSR 03jun1997 q &lt;BR /&gt;Switzerland 14jan2001 a &lt;BR /&gt;Ireland 27aug2000 r &lt;BR /&gt;; &lt;BR /&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print; &lt;BR /&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;BR /&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2013 14:29:33 GMT</pubDate>
    <dc:creator>VarunIyer</dc:creator>
    <dc:date>2013-01-15T14:29:33Z</dc:date>
    <item>
      <title>Informat acting funny!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Informat-acting-funny/m-p/125956#M25676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="summary"&gt;Hey guys, &lt;/P&gt;&lt;P class="summary"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was training a few of my interns and we were working on infile using cards. I landed up at the code below and it surprisingly is working fine against all logic. Can anyone help me solve this mystery? Despite the fact that I have specified Date7. in my informat, I'm able to read the dates right, which are in date9.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test; &lt;BR /&gt;informat DepartureDate date7. ; &lt;BR /&gt;length country $11.; &lt;BR /&gt;format DepartureDate date9. ; &lt;BR /&gt;input Country $ DepartureDate blah $; &lt;BR /&gt;cards; &lt;BR /&gt;Japan 13may2000 a &lt;BR /&gt;New_Zealand 03feb2001 b &lt;BR /&gt;Brazil 28feb2001 c &lt;BR /&gt;Italy 25apr2001 z &lt;BR /&gt;USSR 03jun1997 q &lt;BR /&gt;Switzerland 14jan2001 a &lt;BR /&gt;Ireland 27aug2000 r &lt;BR /&gt;; &lt;BR /&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print; &lt;BR /&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;BR /&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 14:29:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Informat-acting-funny/m-p/125956#M25676</guid>
      <dc:creator>VarunIyer</dc:creator>
      <dc:date>2013-01-15T14:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Informat acting funny!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Informat-acting-funny/m-p/125957#M25677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the length is ignored when using LIST input.&amp;nbsp; List input reads until it finds blank.&amp;nbsp; Now let me see if I can find where that is documentated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 14:55:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Informat-acting-funny/m-p/125957#M25677</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-01-15T14:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Informat acting funny!!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Informat-acting-funny/m-p/125958#M25678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like it is working because you are using list mode input.&amp;nbsp; So it is smart enough to see that the full token of text is 9 characters and uses them all.&lt;/P&gt;&lt;P&gt;Compare with these two INPUT statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input Country $ DepartureDate date7. blah $;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input Country $ DepartureDate :date7. blah $;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 14:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Informat-acting-funny/m-p/125958#M25678</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-01-15T14:56:41Z</dc:date>
    </item>
  </channel>
</rss>

