<?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: Is there a format that will render a datetime value similar to &amp;quot;Jan 23, 2025 09:32:56 GMT&amp;quot; in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-format-that-will-render-a-datetime-value-similar-to/m-p/956965#M373606</link>
    <description>&lt;P&gt;You want to use "directives" in PROC FORMAT. Here is the link (scroll down to directives) &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/p0n990vq8gxca6n1vnsracr6jp2c.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/p0n990vq8gxca6n1vnsracr6jp2c.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example using directives: &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/n01lvjtpz3ewuhn1cvj3x4yhzyul.htm#n01lvjtpz3ewuhn1cvj3x4yhzyul" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/n01lvjtpz3ewuhn1cvj3x4yhzyul.htm#n01lvjtpz3ewuhn1cvj3x4yhzyul&lt;/A&gt;&amp;nbsp;It should be easy to modify this example to get exactly what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2025 10:54:44 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2025-01-23T10:54:44Z</dc:date>
    <item>
      <title>Is there a format that will render a datetime value similar to "Jan 23, 2025 09:32:56 GMT"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-format-that-will-render-a-datetime-value-similar-to/m-p/956963#M373605</link>
      <description>&lt;P&gt;I would like to output a human readable datetime in a comment in some codegen.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename codegen 'xyzzy.sas'; 
data _null_;
  file codegen ;
  now = datetime() ;
  put "/*" / " * Codegen created at " now ___FANCYFORMAT___ / " */" ;
run ;
data _null_;
  file codegen mod ;
  ... actual codegen
run ;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Jan 2025 09:50:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-format-that-will-render-a-datetime-value-similar-to/m-p/956963#M373605</guid>
      <dc:creator>RichardAD</dc:creator>
      <dc:date>2025-01-23T09:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a format that will render a datetime value similar to "Jan 23, 2025 09:32:56 GMT"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-format-that-will-render-a-datetime-value-similar-to/m-p/956965#M373606</link>
      <description>&lt;P&gt;You want to use "directives" in PROC FORMAT. Here is the link (scroll down to directives) &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/p0n990vq8gxca6n1vnsracr6jp2c.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/p0n990vq8gxca6n1vnsracr6jp2c.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example using directives: &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/n01lvjtpz3ewuhn1cvj3x4yhzyul.htm#n01lvjtpz3ewuhn1cvj3x4yhzyul" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/proc/n01lvjtpz3ewuhn1cvj3x4yhzyul.htm#n01lvjtpz3ewuhn1cvj3x4yhzyul&lt;/A&gt;&amp;nbsp;It should be easy to modify this example to get exactly what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 10:54:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-format-that-will-render-a-datetime-value-similar-to/m-p/956965#M373606</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-01-23T10:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a format that will render a datetime value similar to "Jan 23, 2025 09:32:56 GMT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-format-that-will-render-a-datetime-value-similar-to/m-p/956974#M373610</link>
      <description>&lt;P&gt;Eventually found the &lt;STRONG&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;NLDATM*&lt;/FONT&gt;&lt;/STRONG&gt; family of formats.&lt;/P&gt;
&lt;P&gt;NLDATMM. and NLDATMWZ. are close enough.&lt;/P&gt;
&lt;PRE&gt;NLDATM.            23Jan2025:12:21:37
NLDATMAP.          January 23, 2025 12:21:37 PM
NLDATMDT.          January 23, 2025
NLDATML.           January 23, 2025 12:21:37 PM
NLDATMM.           Jan 23, 2025 12:21:37 PM            &amp;lt;------------
NLDATMMD.          January 23
NLDATMMDL.         January 23
NLDATMMDM.         Jan 23
NLDATMMDS.         01/23
NLDATMMN.          January
NLDATMS.           01/23/2025 12:21:37
NLDATMTM.          12:21:37
NLDATMTZ.          12:21:37 +0000
NLDATMW.           Thursday, January 23, 2025 12:21:37 PM
NLDATMWN.          Thursday
NLDATMWZ.          Thu, Jan 23, 2025 12:21:37 PM +0000    &amp;lt;--------
NLDATMYM.          January 2025
NLDATMYML.         January 2025
NLDATMYMM.         Jan 2025
NLDATMYMS.         01/2025
NLDATMYQ.          1st quarter 2025
NLDATMYQL.         1st quarter 2025
NLDATMYQM.         Q1 2025
NLDATMYQS.         2025/1
NLDATMYR.          2025
NLDATMYW.          week 03 2025
NLDATMZ.           23Jan2025:12:21:37 +0000&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Jan 2025 12:28:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-format-that-will-render-a-datetime-value-similar-to/m-p/956974#M373610</guid>
      <dc:creator>RichardAD</dc:creator>
      <dc:date>2025-01-23T12:28:11Z</dc:date>
    </item>
  </channel>
</rss>

