<?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: run macro-Log window- Identify which step is currently running? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935134#M367673</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a bit vague.&amp;nbsp; &amp;nbsp;Can you add a bit more sample code to your example?&amp;nbsp; Do you want to know if the macro is running, or if a DATA step is running, or which iteration of a data step is running, or...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, what IDE are you using to submit SAS code (DisplayManager/PC SAS, Enterprise Guide, Studio?).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically the starting point might be %PUT or PUT statements.&amp;nbsp; But you might also consider more exotics stuff like using %WINDOW to pop up a message in Display manager, or using SYSECHO in EG, as in these blog posts from Chris Hemedinger:&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2009/05/26/tracking-progress-in-sas-programs-in-sas-enterprise-guide/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2009/05/26/tracking-progress-in-sas-programs-in-sas-enterprise-guide/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2013/01/30/tracking-progress-with-dosubl/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2013/01/30/tracking-progress-with-dosubl/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 11:42:31 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2024-07-09T11:42:31Z</dc:date>
    <item>
      <title>run macro-Log window- Identify which step is currently running?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935107#M367661</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Let's say that I run macro code.&lt;/P&gt;
&lt;P&gt;By looking at log window (When SAS didn't finish run)-&lt;/P&gt;
&lt;P&gt;How can I know&amp;nbsp; which process SAS is currently running?&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;(V_months=2111+2110+2109+2108+2107+2106)&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;or&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;(V_months=2110+2109+2108+2107+2106+2105)&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;Should&amp;nbsp;I&amp;nbsp;add&amp;nbsp;any&amp;nbsp;code&amp;nbsp;in&amp;nbsp;order&amp;nbsp;to&amp;nbsp;look&amp;nbsp;at&amp;nbsp;Log&amp;nbsp;window&amp;nbsp;and&amp;nbsp;understand&amp;nbsp;better?&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro RRR;
code
...
code
%mend RRR;
%RRR(V_months=2111+2110+2109+2108+2107+2106)
%RRR(V_months=2110+2109+2108+2107+2106+2105)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jul 2024 08:48:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935107#M367661</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-07-09T08:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: run macro-Log window- Identify which step is currently running?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935111#M367662</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro RRR(V_months=);
%put WARNING: %nrstr(%%)&amp;amp;sysmacroname.( &amp;amp;=V_months. ) is running;
data _null_;
 set sashelp.class;
run;
%mend RRR;
%RRR(V_months=2111+2110+2109+2108+2107+2106)
%RRR(V_months=2110+2109+2108+2107+2106+2105)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1720516341899.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98247iB3DBADB11F51BEAC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1720516341899.png" alt="Ksharp_0-1720516341899.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 09:12:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935111#M367662</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-07-09T09:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: run macro-Log window- Identify which step is currently running?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935134#M367673</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a bit vague.&amp;nbsp; &amp;nbsp;Can you add a bit more sample code to your example?&amp;nbsp; Do you want to know if the macro is running, or if a DATA step is running, or which iteration of a data step is running, or...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, what IDE are you using to submit SAS code (DisplayManager/PC SAS, Enterprise Guide, Studio?).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically the starting point might be %PUT or PUT statements.&amp;nbsp; But you might also consider more exotics stuff like using %WINDOW to pop up a message in Display manager, or using SYSECHO in EG, as in these blog posts from Chris Hemedinger:&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2009/05/26/tracking-progress-in-sas-programs-in-sas-enterprise-guide/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2009/05/26/tracking-progress-in-sas-programs-in-sas-enterprise-guide/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2013/01/30/tracking-progress-with-dosubl/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2013/01/30/tracking-progress-with-dosubl/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 11:42:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935134#M367673</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2024-07-09T11:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: run macro-Log window- Identify which step is currently running?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935145#M367679</link>
      <description>&lt;P&gt;You can tell because those two statements (the macro calls) should be in the SAS log.&lt;/P&gt;
&lt;P&gt;Trivial example:&lt;/P&gt;
&lt;PRE&gt;1    %macro RRR(V_months);
2    /* code */
3    %mend RRR;
4    %RRR(V_months=2111+2110+2109+2108+2107+2106)
5    %RRR(V_months=2110+2109+2108+2107+2106+2105)
&lt;/PRE&gt;
&lt;P&gt;Or did you issue those macro calls as part of some other macro?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you turn on MLOGIC you should see the values passed when the macro starts.&amp;nbsp; (although it will make you log much longer if you have complex macro logic).&lt;/P&gt;
&lt;PRE&gt;1    %macro RRR(V_months);
2    /* code */
3    %mend RRR;
4    options mlogic;
5    %RRR(V_months=2111+2110+2109+2108+2107+2106)
MLOGIC(RRR):  Beginning execution.
MLOGIC(RRR):  Parameter V_MONTHS has value 2111+2110+2109+2108+2107+2106
MLOGIC(RRR):  Ending execution.
6    %RRR(V_months=2110+2109+2108+2107+2106+2105)
MLOGIC(RRR):  Beginning execution.
MLOGIC(RRR):  Parameter V_MONTHS has value 2110+2109+2108+2107+2106+2105
MLOGIC(RRR):  Ending execution.
&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jul 2024 12:45:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935145#M367679</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-07-09T12:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: run macro-Log window- Identify which step is currently running?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935149#M367681</link>
      <description>&lt;P&gt;Just for fun:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro RRR(V_months=)/parmbuff;
%put WARNING- %nrstr(%%)&amp;amp;sysmacroname.&amp;amp;syspbuff. is running;
data _null_;
 set sashelp.class;
run;
%mend RRR;
%RRR(V_months=2111+2110+2109+2108+2107+2106)
%RRR(V_months=2110+2109+2108+2107+2106+2105)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Jul 2024 13:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935149#M367681</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-07-09T13:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: run macro-Log window- Identify which step is currently running?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935150#M367682</link>
      <description>I want to know-&lt;BR /&gt;1-which macro is running?&lt;BR /&gt;In my example have 2 macros &lt;BR /&gt;2-which iteration of a data step is running,</description>
      <pubDate>Tue, 09 Jul 2024 13:37:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935150#M367682</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2024-07-09T13:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: run macro-Log window- Identify which step is currently running?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935151#M367683</link>
      <description>&lt;P&gt;Just for fun, how about to have a cake and to eat a cake:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro RRR(V_months=);
options nomlogic;
/* code */
%do i =1 %to 100;
%end;
/* code */
options mlogic;
%mend RRR;

options mlogic;
%RRR(V_months=2111+2110+2109+2108+2107+2106)
%RRR(V_months=2110+2109+2108+2107+2106+2105)
options nomlogic;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 13:40:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935151#M367683</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-07-09T13:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: run macro-Log window- Identify which step is currently running?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935152#M367684</link>
      <description>&lt;P&gt;"&lt;EM&gt;2-which iteration of a data step is running,&lt;/EM&gt;" - where is data step in your example ?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 13:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-macro-Log-window-Identify-which-step-is-currently-running/m-p/935152#M367684</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-07-09T13:46:35Z</dc:date>
    </item>
  </channel>
</rss>

