<?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 do I solve WARNING: Apparent invocation of macro RESET_CYCLE not resolved. in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-WARNING-Apparent-invocation-of-macro-RESET-CYCLE/m-p/784873#M10326</link>
    <description>&lt;P&gt;Is the "RESET_CYCLE" macro sas file in low case letters, i.e. "reset_cycle.sas" ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
    <pubDate>Wed, 08 Dec 2021 11:02:47 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2021-12-08T11:02:47Z</dc:date>
    <item>
      <title>How do I solve WARNING: Apparent invocation of macro RESET_CYCLE not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-WARNING-Apparent-invocation-of-macro-RESET-CYCLE/m-p/784853#M10324</link>
      <description>&lt;P&gt;I am getting the warning and error of:&lt;/P&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;CODE class=""&gt;WARNING: Apparent invocation of macro RESET_CYCLE not resolved.

MLOGIC(PURGE_RGF): Ending execution.
NOTE: Line generated by the CALL EXECUTE routine.
4 + %reset_cycle(cycle_id= 11534)
_
180

ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;My script is as follows.&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;CODE class=""&gt;options mlogic mprint symbolgen;
%include "&amp;amp;SAS_APP_ROOT./SASIRM/custom/utilities/housekeep/ucmacros/dm_rgf_rest_delete_cycle.sas";
%let SAS_APP_ROOT2 = /sas/config;
%macro see_rgf(retention_period=100);

%let retention_period_days=%SYSEVALF(&amp;amp;retention_period * 31);

%let APPDATA_HOME=&amp;amp;SAS_APP_ROOT.;
%let SASIRM_HOME=&amp;amp;APPDATA_HOME./SASIRM;

%include "&amp;amp;SASIRM_HOME./custom/utilities/batch_run/custom/sas_env.sas";


option insert = ( 
	sasautos = (
				"&amp;amp;SAS_APP_ROOT2./ucmacro"
               "&amp;amp;SASIRM_HOME./&amp;amp;frs_id./irm/source/sas/ucmacros"
               "&amp;amp;SASIRM_HOME./&amp;amp;rmc_id./irm/source/sas/ucmacros"
               )
	set = CLASSPATH "&amp;amp;SASIRM_HOME./irm/source/java/lib/pdfUtils.jar");

filename LUAPATH ("&amp;amp;SASIRM_HOME./&amp;amp;frs_id./irm/source/lua"
                  "&amp;amp;SASIRM_HOME./&amp;amp;rmc_id./irm/source/lua"
                  "!SASROOT\modimpsvr\lua" "!SASROOT\rmifirmmva\lua" "!SASROOT\stresssvr\lua"
                  ); 
&amp;lt;sas code&amp;gt;
&amp;lt;sas code&amp;gt;
&amp;lt;sas code&amp;gt;
&amp;lt;sas code&amp;gt;
&amp;lt;sas code&amp;gt;
&amp;lt;sas code&amp;gt;
data _null_;
set info;
call execute ('%reset_cycle(cycle_id='||key||')');
run;

%mend;
%see_rgf;&lt;/CODE&gt;&lt;/PRE&gt;I have a reset_cycle.sas program resided in&amp;nbsp;&lt;CODE class=""&gt;/sas/config/ucmacro &lt;/CODE&gt;with code %macro reset_cycle() in it. However, I am getting this issue. What could possible be wrong here?&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Dec 2021 08:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-WARNING-Apparent-invocation-of-macro-RESET-CYCLE/m-p/784853#M10324</guid>
      <dc:creator>StickyRoll</dc:creator>
      <dc:date>2021-12-08T08:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve WARNING: Apparent invocation of macro RESET_CYCLE not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-WARNING-Apparent-invocation-of-macro-RESET-CYCLE/m-p/784872#M10325</link>
      <description>&lt;P&gt;Try to do something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro testExecution();
  %if %SYSMACEXIST(RESET_CYCLE)=1 %then
    %RESET_CYCLE(...);
  %else %put ERROR: RESET_CYCLE does not exist;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 11:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-WARNING-Apparent-invocation-of-macro-RESET-CYCLE/m-p/784872#M10325</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2021-12-08T11:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve WARNING: Apparent invocation of macro RESET_CYCLE not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-WARNING-Apparent-invocation-of-macro-RESET-CYCLE/m-p/784873#M10326</link>
      <description>&lt;P&gt;Is the "RESET_CYCLE" macro sas file in low case letters, i.e. "reset_cycle.sas" ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 11:02:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-WARNING-Apparent-invocation-of-macro-RESET-CYCLE/m-p/784873#M10326</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2021-12-08T11:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve WARNING: Apparent invocation of macro RESET_CYCLE not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-WARNING-Apparent-invocation-of-macro-RESET-CYCLE/m-p/784874#M10327</link>
      <description>&lt;P&gt;Also ensure both:&amp;nbsp;MRECALL and&amp;nbsp;MAUTOSOURCE options are turned on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 11:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-WARNING-Apparent-invocation-of-macro-RESET-CYCLE/m-p/784874#M10327</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2021-12-08T11:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve WARNING: Apparent invocation of macro RESET_CYCLE not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-WARNING-Apparent-invocation-of-macro-RESET-CYCLE/m-p/784883#M10328</link>
      <description>&lt;P&gt;Hey there, this is the result:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt; NOTE: There were 1 observations read from the data set WORK.INFO.
 NOTE: The data set WORK.INFO has 1 observations and 27 variables.
 NOTE: PROCEDURE SORT used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 MPRINT(PURGE_RGF):   data _null_;
 MPRINT(PURGE_RGF):   set info(obs=1);
 MLOGIC(PURGE_RGF):  %IF condition %SYSMACEXIST(RESET_CYCLE)=1 is TRUE
 MLOGIC(PURGE_RGF):  %PUT reset_cycle exists
 reset_cycle exists
 MPRINT(PURGE_RGF):   run;
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It means reset_cycle resolved to TRUE.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 11:49:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-WARNING-Apparent-invocation-of-macro-RESET-CYCLE/m-p/784883#M10328</guid>
      <dc:creator>StickyRoll</dc:creator>
      <dc:date>2021-12-08T11:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve WARNING: Apparent invocation of macro RESET_CYCLE not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-WARNING-Apparent-invocation-of-macro-RESET-CYCLE/m-p/784884#M10329</link>
      <description>&lt;P&gt;the SAS program is all small letter "reset_cycle.sas"&lt;/P&gt;&lt;P&gt;Furthermore, the macro name inside&amp;nbsp;"reset_cycle.sas" is&lt;/P&gt;&lt;P&gt;%macro reset_cycle(id=);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't think of any other possible issue causing this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 11:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-WARNING-Apparent-invocation-of-macro-RESET-CYCLE/m-p/784884#M10329</guid>
      <dc:creator>StickyRoll</dc:creator>
      <dc:date>2021-12-08T11:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve WARNING: Apparent invocation of macro RESET_CYCLE not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-WARNING-Apparent-invocation-of-macro-RESET-CYCLE/m-p/784916#M10330</link>
      <description>&lt;P&gt;if you %include&amp;nbsp;"&amp;amp;SAS_APP_ROOT2./ucmacro/res/reset_cycle.sas" will that load the macro and get it to work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, I would start a new SAS session and try again. As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35763"&gt;@yabwon&lt;/a&gt; mentioned, it's a good idea to keep option mrecall turned on while debugging autocall macros.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's turned off, SAS will only look for an autocall macro definition once (per session).&amp;nbsp; If you try to call a macro, and it can't find it because it's not in sasautos or whatever, and they you change the directories listed in sasautos and call the macro again, SAS won't look again, it will just say 'not resolved' without looking for it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/n0cfvf12looza7n10yaa4foizemd.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/n0cfvf12looza7n10yaa4foizemd.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 14:10:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-WARNING-Apparent-invocation-of-macro-RESET-CYCLE/m-p/784916#M10330</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2021-12-08T14:10:48Z</dc:date>
    </item>
  </channel>
</rss>

