<?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: Not able to read the date accurately in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-the-date-accurately/m-p/819476#M323471</link>
    <description>&lt;P&gt;Thank you everyone. It worked fine after converting the type.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2022 22:22:09 GMT</pubDate>
    <dc:creator>kajal_30</dc:creator>
    <dc:date>2022-06-21T22:22:09Z</dc:date>
    <item>
      <title>Not able to read the date accurately</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-the-date-accurately/m-p/819324#M323413</link>
      <description>&lt;P&gt;I have one column having values like 20201022, 20200123, 20220410 I have tried almost all informats&amp;nbsp; to read the value. Can anyone please suggest the informat to read these values? I am expecting to read it as date and output value in the format of date9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kajal&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 14:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-the-date-accurately/m-p/819324#M323413</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2022-06-21T14:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to read the date accurately</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-the-date-accurately/m-p/819327#M323416</link>
      <description>&lt;P&gt;You don't say if these values are numeric or character according to PROC CONTENTS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If character, use informat YYMMDD8.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If numeric, they have to be converted to character first.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 14:29:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-the-date-accurately/m-p/819327#M323416</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-06-21T14:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to read the date accurately</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-the-date-accurately/m-p/819344#M323419</link>
      <description>&lt;P&gt;Did you try adding the colon (:) modifier:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt;format d1 d2 d3 date9.;&lt;BR /&gt;input d1 :yymmdd8. d2 :yymmdd8. d3 :yymmdd8.;&lt;BR /&gt;datalines;&lt;BR /&gt;20201022 20200123 20220410&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 15:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-the-date-accurately/m-p/819344#M323419</guid>
      <dc:creator>JOL</dc:creator>
      <dc:date>2022-06-21T15:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to read the date accurately</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-the-date-accurately/m-p/819346#M323421</link>
      <description>&lt;P&gt;Code and/or log.&lt;/P&gt;
&lt;P&gt;Please don't make us guess what you attempted and failed.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 15:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-the-date-accurately/m-p/819346#M323421</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-21T15:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to read the date accurately</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-the-date-accurately/m-p/819476#M323471</link>
      <description>&lt;P&gt;Thank you everyone. It worked fine after converting the type.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 22:22:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Not-able-to-read-the-date-accurately/m-p/819476#M323471</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2022-06-21T22:22:09Z</dc:date>
    </item>
  </channel>
</rss>

