<?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 How do I solve &amp;quot;WARNING: Apparent invocation of macro DCA not resolved&amp;quot; in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515125#M6623</link>
    <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run a decision-curve analysis on a macro and attached you will find the code I have used thus far. I continue to get the warning "Apparent invocation of macro DCA not resolved." I am pretty new to using SAS and I am sure there is a decently simple fix to this, however I am not sure where to go or what to do from here. Any help would be much appreciated. Thank you!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-11-21 at 9.59.37 AM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25107iBE94E1D175135634/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-11-21 at 9.59.37 AM.png" alt="Screen Shot 2018-11-21 at 9.59.37 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-11-21 at 10.00.03 AM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25108i1C89158C85F12D26/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-11-21 at 10.00.03 AM.png" alt="Screen Shot 2018-11-21 at 10.00.03 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Nov 2018 15:12:50 GMT</pubDate>
    <dc:creator>ryanpelletier</dc:creator>
    <dc:date>2018-11-21T15:12:50Z</dc:date>
    <item>
      <title>How do I solve "WARNING: Apparent invocation of macro DCA not resolved"</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515125#M6623</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to run a decision-curve analysis on a macro and attached you will find the code I have used thus far. I continue to get the warning "Apparent invocation of macro DCA not resolved." I am pretty new to using SAS and I am sure there is a decently simple fix to this, however I am not sure where to go or what to do from here. Any help would be much appreciated. Thank you!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-11-21 at 9.59.37 AM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25107iBE94E1D175135634/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-11-21 at 9.59.37 AM.png" alt="Screen Shot 2018-11-21 at 9.59.37 AM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-11-21 at 10.00.03 AM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25108i1C89158C85F12D26/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-11-21 at 10.00.03 AM.png" alt="Screen Shot 2018-11-21 at 10.00.03 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 15:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515125#M6623</guid>
      <dc:creator>ryanpelletier</dc:creator>
      <dc:date>2018-11-21T15:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve "WARNING: Apparent invocation of macro DCA not resolved"</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515128#M6624</link>
      <description>&lt;P&gt;You need to compile the macro before you call it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could include the definition in your program. Or use the %INCLUDE statement to source the definition from a file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you might be trying to use an autocall library since you added HOME to your SASAUTOS option setting.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For that to work the definition for the macro DCA needs to be in a file named 'dca.sas' that is stored in one of the folders&amp;nbsp;or folders pointed to by a&amp;nbsp;filerefs that are listed in SASAUTOS option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you are running on Unix the filename needs to be in all lowercase.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 15:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515128#M6624</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-21T15:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve "WARNING: Apparent invocation of macro DCA not resolved"</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515148#M6625</link>
      <description>&lt;P&gt;The problem lies in your LIBNAME statement (sort of).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To access SAS data sets in the folder, the LIBNAME statement is correct.&amp;nbsp; However, to access macros via the SASAUTOS option, you would also need a FILENAME statement pointing to the same folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LIBNAME for SAS data, FILENAME for text files (which includes macro definitions).&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 16:31:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515148#M6625</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-11-21T16:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve "WARNING: Apparent invocation of macro DCA not resolved"</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515174#M6626</link>
      <description>&lt;P&gt;Good point about needing a fileref instead of a libref in the SASAUTOS option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that if you are really using HOME as a libref you also just use the PATHNAME() function to help you use its path in the SASAUTOS setting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname home ..... ;
options sasautos = ("%sysfunc(pathname(home))" sasautos);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What order to but your directory in relation to the the SAS supplied macros is determined by whether you want to be able to override the SAS supplied macros with your own definitions or not.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 17:29:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515174#M6626</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-21T17:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve "WARNING: Apparent invocation of macro DCA not resolved"</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515380#M6627</link>
      <description>&lt;P&gt;Thank you all for your help so far-these have been great suggestions. Unfortunately, I have tried them out and still seem to be getting the same warning message. I think the problem may be in the way I have my folders set up/files saved to my Mac. Here is a screenshot inclusive of my files. This decisioncurveanalysis folder is from a tutorial on how to perform DCA in SAS, Stata, and R so that's why you will see those files there as well. Hopefully this information will help with resolving this issue. Thank you again!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-11-22 at 10.28.09 AM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25131iB5616608E69E4BFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-11-22 at 10.28.09 AM.png" alt="Screen Shot 2018-11-22 at 10.28.09 AM.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 15:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515380#M6627</guid>
      <dc:creator>ryanpelletier</dc:creator>
      <dc:date>2018-11-22T15:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve "WARNING: Apparent invocation of macro DCA not resolved"</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515384#M6628</link>
      <description>&lt;P&gt;You need to find the code that defines the macro.&amp;nbsp; It should look like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro dca
 ....
%mend;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And run that code BEFORE you try to call the macro using the code in your photograph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 15:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515384#M6628</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-22T15:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve "WARNING: Apparent invocation of macro DCA not resolved"</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515413#M6629</link>
      <description>&lt;P&gt;Thank you! I think I am making progress...I no longer receive the "invocation of macro..." warning, however I am still receiving this error. Is there a problem with my code for this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-11-22 at 1.46.43 PM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25133iBCC7A6AC99E862DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-11-22 at 1.46.43 PM.png" alt="Screen Shot 2018-11-22 at 1.46.43 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 18:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515413#M6629</guid>
      <dc:creator>ryanpelletier</dc:creator>
      <dc:date>2018-11-22T18:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve "WARNING: Apparent invocation of macro DCA not resolved"</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515448#M6631</link>
      <description>&lt;P&gt;Remove the line -&amp;nbsp; %dca (data=dca,outcome=cancer....................)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are already running the model using Proc Logistic. The macro %dca is only calling the model with outcome and predictors which are already defined in proc logistic.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 21:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515448#M6631</guid>
      <dc:creator>saslove</dc:creator>
      <dc:date>2018-11-22T21:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve "WARNING: Apparent invocation of macro DCA not resolved"</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515576#M6635</link>
      <description>&lt;P&gt;Hi Tom,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do think this is what the issue is ( defining the DCA macro). The following screenshot is directly from the DCA tutorial code...would this be the code defining the macro?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-11-23 at 10.23.43 AM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25141iF0F08B0E9AF97353/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-11-23 at 10.23.43 AM.png" alt="Screen Shot 2018-11-23 at 10.23.43 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 15:25:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515576#M6635</guid>
      <dc:creator>ryanpelletier</dc:creator>
      <dc:date>2018-11-23T15:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve "WARNING: Apparent invocation of macro DCA not resolved"</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515593#M6636</link>
      <description>&lt;P&gt;That is just another example of calling the macro. You need to check the setup instructions in the tutorial to see how they want you to install the actual macro definition.&amp;nbsp; Or search the other code files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS The photos of your program are really cute, but if you want to share code it is best to share it as text. Make sure to use the Insert SAS code icon to get a pop-up to paste in the text of your code.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 16:17:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515593#M6636</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-11-23T16:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve "WARNING: Apparent invocation of macro DCA not resolved"</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515613#M6637</link>
      <description>&lt;P&gt;Is the &lt;A href="https://www.mskcc.org/departments/epidemiology-biostatistics/biostatistics/decision-curve-analysis" target="_blank"&gt;Decision Curve Analysis&lt;/A&gt; tutorial from Memorial Sloan Kettering Cancer Center?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, the dca.sas program, which has the code for the dca macro, is in the "Download SAS Code" zip file.&amp;nbsp; From your screen shot, it looks like you have the files from the last zip file mentioned on that page, which does &lt;EM&gt;&lt;STRONG&gt;not&lt;/STRONG&gt; &lt;/EM&gt;include the files for the dca macro or the stdca macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 16:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515613#M6637</guid>
      <dc:creator>SuzanneDorinski</dc:creator>
      <dc:date>2018-11-23T16:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve "WARNING: Apparent invocation of macro DCA not resolved"</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515650#M6638</link>
      <description>&lt;P&gt;This is exactly where the tutorial is from! Thank you for the heads up, I found the files and it is now running smoothly. Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 20:09:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-do-I-solve-quot-WARNING-Apparent-invocation-of-macro-DCA-not/m-p/515650#M6638</guid>
      <dc:creator>ryanpelletier</dc:creator>
      <dc:date>2018-11-23T20:09:00Z</dc:date>
    </item>
  </channel>
</rss>

