<?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 How to read yyyymmddhmmss informat in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/434044#M107693</link>
    <description>&lt;P&gt;Hello Expert,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you Please help me to read yyyymmddhmmss date value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a character column&amp;nbsp; which is containing records in yyyymmddhmmss format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to read values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Test;&lt;/P&gt;&lt;P&gt;Length A $60.;&lt;/P&gt;&lt;P&gt;A='20180205092045';&lt;/P&gt;&lt;P&gt;B=input(A,informat);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me which Informat can read it properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ritesh&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2018 03:51:48 GMT</pubDate>
    <dc:creator>Riteshdell</dc:creator>
    <dc:date>2018-02-05T03:51:48Z</dc:date>
    <item>
      <title>How to read yyyymmddhmmss informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/434044#M107693</link>
      <description>&lt;P&gt;Hello Expert,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you Please help me to read yyyymmddhmmss date value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a character column&amp;nbsp; which is containing records in yyyymmddhmmss format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to read values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data Test;&lt;/P&gt;&lt;P&gt;Length A $60.;&lt;/P&gt;&lt;P&gt;A='20180205092045';&lt;/P&gt;&lt;P&gt;B=input(A,informat);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me which Informat can read it properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ritesh&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 03:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/434044#M107693</guid>
      <dc:creator>Riteshdell</dc:creator>
      <dc:date>2018-02-05T03:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to read yyyymmddhmmss informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/434045#M107694</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Test;

    Length A $60.;

    A='20180205092045';

    B=input(A,anydtdtm.);

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Feb 2018 04:07:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/434045#M107694</guid>
      <dc:creator>AndrewHowell</dc:creator>
      <dc:date>2018-02-05T04:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to read yyyymmddhmmss informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/434046#M107695</link>
      <description>its not reading in anydtdtm. informat.&lt;BR /&gt;I want my data in datetime20.6 format.</description>
      <pubDate>Mon, 05 Feb 2018 04:10:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/434046#M107695</guid>
      <dc:creator>Riteshdell</dc:creator>
      <dc:date>2018-02-05T04:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to read yyyymmddhmmss informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/434049#M107697</link>
      <description>&lt;P&gt;something like&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Test;
    A='20180205092045';
    B=input(A, B8601DJ16.);
    format B datetime20.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Feb 2018 05:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/434049#M107697</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-02-05T05:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to read yyyymmddhmmss informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/434076#M107708</link>
      <description>&lt;P&gt;Data Test;&lt;/P&gt;&lt;P&gt;Length A $60.;&lt;/P&gt;&lt;P&gt;A='20180205092045';&lt;/P&gt;&lt;P&gt;B=input(A,anydtdte14.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 07:16:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/434076#M107708</guid>
      <dc:creator>srinath3111</dc:creator>
      <dc:date>2018-02-05T07:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to read yyyymmddhmmss informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/434109#M107719</link>
      <description>&lt;P&gt;I strongly advise against the use of the "any" informats. You just tell SAS to make a guess and create something out of a string that could contain absolute crap, and still end up with a non-missing value (and not even a NOTE!) that later wrecks all your analysis.&lt;/P&gt;
&lt;P&gt;Force correct data at every step of your analytic chain, and never let the computer do your thinking for you. See Maxims 31 and 22.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Follow &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37783"&gt;@kiranv_&lt;/a&gt;'s suggestion for using one of the ISO 8601 formats. I'd even use one for display:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Test;
    A='20180205092045';
    B=input(A, B8601DJ16.);
    format B e8601dt19.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 09:43:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/434109#M107719</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-02-05T09:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to read yyyymmddhmmss informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/434421#M107797</link>
      <description>I wouldn't advocate the "any" informats in a critical operational environment. But the need which created the "any" informat highlights that there are inputs where we cannot mandate a consistent date/datetime informat. (That may or may not be the case here.)&lt;BR /&gt;Any use of an "any" informat MUST come with the presumption that the date might be incorrectly informatted.</description>
      <pubDate>Mon, 05 Feb 2018 23:35:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/434421#M107797</guid>
      <dc:creator>AndrewHowell</dc:creator>
      <dc:date>2018-02-05T23:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to read yyyymmddhmmss informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/435215#M108088</link>
      <description>&lt;P&gt;Thanks Its working&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 11:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-yyyymmddhmmss-informat/m-p/435215#M108088</guid>
      <dc:creator>Riteshdell</dc:creator>
      <dc:date>2018-02-08T11:40:22Z</dc:date>
    </item>
  </channel>
</rss>

