<?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: SAS formats categories in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-formats-categories/m-p/728747#M226744</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/71447"&gt;@NicoM&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I searched using keywords "format" and "category", but I did not come across that thread. &amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I was just lucky that I remembered the discussion, so I could restrict my search to posts by user Tom, date: "A month ago." &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Mar 2021 13:42:56 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2021-03-24T13:42:56Z</dc:date>
    <item>
      <title>SAS formats categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-formats-categories/m-p/728698#M226728</link>
      <description>&lt;P&gt;I would like to replace the formats of a data set by some standard formats based on the type of format. That is, I would like to specify a specific format for the following categories of variables:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;numeric (excl. date / datetime)&lt;/LI&gt;&lt;LI&gt;character&lt;/LI&gt;&lt;LI&gt;date&lt;/LI&gt;&lt;LI&gt;datetime&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It is straightforward to determine using code whether a variable is character or numeric. For example, using PROC CONTENTS, the information in SASHELP.VCOLUMN or the variable info functions (vtype, vtypex).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there also a way to determine the category of the format of the variable (date, datetime, etc.) using the format that is applied? Similar to the categories as described in the SAS programming documentation: &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=leforinforref&amp;amp;docsetTarget=n0p2fmevfgj470n17h4k9f27qjag.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;Formats by category&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Information about the format is available in the three sources mentioned above, but I would like to avoid having to create the list of valid date and datetime formats myself.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 09:43:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-formats-categories/m-p/728698#M226728</guid>
      <dc:creator>NicoM</dc:creator>
      <dc:date>2021-03-24T09:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS formats categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-formats-categories/m-p/728709#M226732</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/71447"&gt;@NicoM&lt;/a&gt;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/71447"&gt;@NicoM&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there also a way to determine the category of the format of the variable (date, datetime, etc.) using the format that is applied?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, there is: the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=n08tazkeygnw9on138axalvpy9p4.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;FMTINFO function&lt;/A&gt;, as &lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159" target="_blank" rel="noopener"&gt;Tom&lt;/A&gt;&amp;nbsp;illustrated last week in &lt;A href="https://communities.sas.com/t5/SAS-Programming/Identify-List-all-date-fields/m-p/727124" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/Identify-List-all-date-fields/m-p/727124&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 10:48:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-formats-categories/m-p/728709#M226732</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-03-24T10:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS formats categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-formats-categories/m-p/728746#M226743</link>
      <description>&lt;P&gt;Thanks, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;! That is exactly what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I searched using keywords "format" and "category", but I did not come across that thread. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 13:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-formats-categories/m-p/728746#M226743</guid>
      <dc:creator>NicoM</dc:creator>
      <dc:date>2021-03-24T13:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS formats categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-formats-categories/m-p/728747#M226744</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/71447"&gt;@NicoM&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I searched using keywords "format" and "category", but I did not come across that thread. &amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I was just lucky that I remembered the discussion, so I could restrict my search to posts by user Tom, date: "A month ago." &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 13:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-formats-categories/m-p/728747#M226744</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-03-24T13:42:56Z</dc:date>
    </item>
  </channel>
</rss>

