<?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 to pass runtime of procs into macro variable? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-pass-runtime-of-procs-into-macro-variable/m-p/782174#M249343</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let t1 = %sysfunc(datetime());

data _null_;
   x=sleep(10,1);
run;

%let t2 = %sysfunc(datetime());

%let run_time = %sysevalf(&amp;amp;t2 - &amp;amp;t1);

%put &amp;amp;run_time;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 24 Nov 2021 10:22:58 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2021-11-24T10:22:58Z</dc:date>
    <item>
      <title>how to pass runtime of procs into macro variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-pass-runtime-of-procs-into-macro-variable/m-p/782172#M249341</link>
      <description>&lt;P&gt;how to get runtime and pass value to macro var? thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 09:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-pass-runtime-of-procs-into-macro-variable/m-p/782172#M249341</guid>
      <dc:creator>kimmygzc</dc:creator>
      <dc:date>2021-11-24T09:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass runtime of procs into macro variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-pass-runtime-of-procs-into-macro-variable/m-p/782173#M249342</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let start=%sysfunc(datetime());

proc report data=sashelp.cars;
column origin n;
define origin /group;
rbreak after / summarize;
define n / "";
compute after;
  origin = "Total";
endcomp;
run;

%let end=%sysfunc(datetime());
%let duration = %sysevalf(&amp;amp;end. - &amp;amp;start.);
%put Duration = &amp;amp;duration. seconds;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Nov 2021 10:22:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-pass-runtime-of-procs-into-macro-variable/m-p/782173#M249342</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-24T10:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to pass runtime of procs into macro variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-pass-runtime-of-procs-into-macro-variable/m-p/782174#M249343</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let t1 = %sysfunc(datetime());

data _null_;
   x=sleep(10,1);
run;

%let t2 = %sysfunc(datetime());

%let run_time = %sysevalf(&amp;amp;t2 - &amp;amp;t1);

%put &amp;amp;run_time;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Nov 2021 10:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-pass-runtime-of-procs-into-macro-variable/m-p/782174#M249343</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-11-24T10:22:58Z</dc:date>
    </item>
  </channel>
</rss>

