<?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: Date values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-values/m-p/743878#M232986</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.stocks;
 fmt_date=fmtinfo(compress(vformat(date),,'ka'),'cat');
fmt_open=fmtinfo(compress(vformat(open),,'ka'),'cat');
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 26 May 2021 13:56:05 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-05-26T13:56:05Z</dc:date>
    <item>
      <title>Date values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-values/m-p/743835#M232968</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;is there any way to find out the particular variable consist date values ?&lt;/P&gt;
&lt;P&gt;I know we can run PROC contents , is there any other way to find out ??&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 12:10:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-values/m-p/743835#M232968</guid>
      <dc:creator>Aexor</dc:creator>
      <dc:date>2021-05-26T12:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Date values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-values/m-p/743837#M232970</link>
      <description>&lt;P&gt;You can look at the data set with your own eyes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see if the variable name indicates that this is a Date (although there's no guarantee the variable name is correct)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you can use &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers/ta-p/352068" target="_self"&gt;Maxim 3&lt;/A&gt;, Know Your Data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 12:17:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-values/m-p/743837#M232970</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-05-26T12:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Date values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-values/m-p/743838#M232971</link>
      <description>&lt;P&gt;There are ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) visually you can open the data&lt;/P&gt;
&lt;P&gt;2) if there is a data dictionary that exist.&lt;/P&gt;
&lt;P&gt;3) there might be also labels included to describe what that column variable is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 12:18:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-values/m-p/743838#M232971</guid>
      <dc:creator>CarmineVerrell</dc:creator>
      <dc:date>2021-05-26T12:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-values/m-p/743873#M232983</link>
      <description>Try FMTINFO() .&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Determine-the-column-type-DATE-DATETIME-TIME-based-on-the-SAS/m-p/633586" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Determine-the-column-type-DATE-DATETIME-TIME-based-on-the-SAS/m-p/633586&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 May 2021 13:49:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-values/m-p/743873#M232983</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-05-26T13:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Date values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-values/m-p/743878#M232986</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.stocks;
 fmt_date=fmtinfo(compress(vformat(date),,'ka'),'cat');
fmt_open=fmtinfo(compress(vformat(open),,'ka'),'cat');
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 May 2021 13:56:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-values/m-p/743878#M232986</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-05-26T13:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-values/m-p/743881#M232988</link>
      <description>&lt;P&gt;Or you could try dictionary table instead of my data step .&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;set sashelp.vcolumn(where=(libname='SASHELP' and memname='STOCKS'));&lt;BR /&gt;is_date=fmtinfo(compress(format,,'ka'),'cat');&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 11:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-values/m-p/743881#M232988</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-05-27T11:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-values/m-p/743925#M233000</link>
      <description>&lt;P&gt;The only problem with FMTINFO is that variables can be dates but not have a format, or they can be character (yes, I know they are not SAS dates, but they are human readable dates) as in this &lt;A href="https://communities.sas.com/t5/New-SAS-User/Not-able-to-do-date-difference/m-p/743842#M29264" target="_self"&gt;recent discussion&lt;/A&gt;. So, FMTINFO will work in some situations and not others, which is why Maxim 3 is so useful, it works in all situations, but it requires more effort on the part of the user.&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 15:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-values/m-p/743925#M233000</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-05-26T15:40:22Z</dc:date>
    </item>
  </channel>
</rss>

