<?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: How print out time info. inside MACRO with format ?! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-print-out-time-info-inside-MACRO-with-format/m-p/883197#M348980</link>
    <description>&lt;P&gt;%SYSFUNC allows formats:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %sysfunc(time(),time8.);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 01 Jul 2023 15:38:49 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-07-01T15:38:49Z</dc:date>
    <item>
      <title>How print out time info. inside MACRO with format ?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-print-out-time-info-inside-MACRO-with-format/m-p/883196#M348979</link>
      <description>&lt;P&gt;Running macro with huge loops, and like to print out the end time of each loop in format, such as hhmmss[or with millisecond].&lt;/P&gt;
&lt;P&gt;Need this to tell time cost for each loop.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simply&amp;nbsp; %put "%sysfunc(time())"; does print out time info, but without format, hard to tell.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;44497    %put "%sysfunc(time())";
"84736.9679999351"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Jul 2023 15:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-print-out-time-info-inside-MACRO-with-format/m-p/883196#M348979</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2023-07-01T15:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: How print out time info. inside MACRO with format ?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-print-out-time-info-inside-MACRO-with-format/m-p/883197#M348980</link>
      <description>&lt;P&gt;%SYSFUNC allows formats:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %sysfunc(time(),time8.);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Jul 2023 15:38:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-print-out-time-info-inside-MACRO-with-format/m-p/883197#M348980</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-07-01T15:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: How print out time info. inside MACRO with format ?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-print-out-time-info-inside-MACRO-with-format/m-p/883198#M348981</link>
      <description>&lt;P&gt;Assign whatever date/time format you want, like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; %put %sysfunc(datetime(),datetime19.);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Jul 2023 15:39:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-print-out-time-info-inside-MACRO-with-format/m-p/883198#M348981</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-01T15:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: How print out time info. inside MACRO with format ?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-print-out-time-info-inside-MACRO-with-format/m-p/883199#M348982</link>
      <description>&lt;P&gt;So why just add a FORMAT to the %SYSFUNC() call?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %sysfunc(time(),time12.3);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or perhaps better use DATETIME() function so you can track jobs that cross midnight.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %sysfunc(datetime(),datetime24.3);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Jul 2023 15:39:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-print-out-time-info-inside-MACRO-with-format/m-p/883199#M348982</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-01T15:39:27Z</dc:date>
    </item>
  </channel>
</rss>

