<?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 reading a date coloum in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/reading-a-date-coloum/m-p/741479#M231784</link>
    <description>&lt;P&gt;How can i read the given updated (date) coloum?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id&amp;nbsp; name salary updated&lt;BR /&gt;&lt;BR /&gt;1 John&amp;nbsp; &amp;nbsp;35000.00&amp;nbsp; &amp;nbsp;2018-05-01&lt;BR /&gt;2 Peter&amp;nbsp; 42000.00&amp;nbsp; &amp;nbsp;2019-04-01&lt;BR /&gt;3 Peter&amp;nbsp; 54000.00&amp;nbsp; &amp;nbsp;2017-01-22&lt;BR /&gt;4 Sam&amp;nbsp; &amp;nbsp;58000.00&amp;nbsp; &amp;nbsp;2018-01-01&lt;BR /&gt;5 John&amp;nbsp; &amp;nbsp;62000.00&amp;nbsp; &amp;nbsp; 2016-01-01&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 14 May 2021 15:35:31 GMT</pubDate>
    <dc:creator>Aexor</dc:creator>
    <dc:date>2021-05-14T15:35:31Z</dc:date>
    <item>
      <title>reading a date coloum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-a-date-coloum/m-p/741479#M231784</link>
      <description>&lt;P&gt;How can i read the given updated (date) coloum?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id&amp;nbsp; name salary updated&lt;BR /&gt;&lt;BR /&gt;1 John&amp;nbsp; &amp;nbsp;35000.00&amp;nbsp; &amp;nbsp;2018-05-01&lt;BR /&gt;2 Peter&amp;nbsp; 42000.00&amp;nbsp; &amp;nbsp;2019-04-01&lt;BR /&gt;3 Peter&amp;nbsp; 54000.00&amp;nbsp; &amp;nbsp;2017-01-22&lt;BR /&gt;4 Sam&amp;nbsp; &amp;nbsp;58000.00&amp;nbsp; &amp;nbsp;2018-01-01&lt;BR /&gt;5 John&amp;nbsp; &amp;nbsp;62000.00&amp;nbsp; &amp;nbsp; 2016-01-01&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 15:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-a-date-coloum/m-p/741479#M231784</guid>
      <dc:creator>Aexor</dc:creator>
      <dc:date>2021-05-14T15:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: reading a date coloum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-a-date-coloum/m-p/741488#M231789</link>
      <description>&lt;P&gt;You need to use an &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/leforinforref/p0fvy5h4ajagxmn1wo4yyx66rit4.htm" target="_self"&gt;informat&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	input id $ name $ amount date : yymmdd10. ;
	put id= name= amount= date= date=date7. ;
datalines;
1 John   35000.00   2018-05-01
2 Peter  42000.00   2019-04-01
3 Peter  54000.00   2017-01-22
4 Sam   58000.00   2018-01-01
5 John   62000.00    2016-01-01
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 May 2021 15:43:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-a-date-coloum/m-p/741488#M231789</guid>
      <dc:creator>AMSAS</dc:creator>
      <dc:date>2021-05-14T15:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: reading a date coloum</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-a-date-coloum/m-p/741490#M231790</link>
      <description>&lt;PRE&gt;data example;
   input id  name $ salary updated :yymmdd10.;
   format updated yymmdd10.;
datalines;
1 John   35000.00   2018-05-01
2 Peter  42000.00   2019-04-01
3 Peter  54000.00   2017-01-22
4 Sam   58000.00   2018-01-01
5 John   62000.00    2016-01-01
;&lt;/PRE&gt;
&lt;P&gt;The Informat you should use is yymmdd10. That creates a SAS date value which for people to understand should have a date type format assigned of which there are many.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Working-with-Dates-and-Times-in-SAS-Tutorial/ta-p/424354" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Working-with-Dates-and-Times-in-SAS-Tutorial/ta-p/424354&lt;/A&gt; has a PDF with much information about dates.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 15:45:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-a-date-coloum/m-p/741490#M231790</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-14T15:45:53Z</dc:date>
    </item>
  </channel>
</rss>

