<?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: %include or some other procedure to call macro with conditions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/include-or-some-other-procedure-to-call-macro-with-conditions/m-p/154183#M30241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understood you correctly; 1) include any SAS-code including macros:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Consolas;"&gt; Filename MyFile &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt; font-family: Consolas;"&gt;"C:\Users\Username\Desktop\Test.sas"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Consolas;"&gt; %Include MyFile;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Consolas;"&gt;2) If you would like to user-friendly replace %let-statements, you might be looking for prompts in the enterprise guide (if you#re using one); right-klick on the code in the EG, then "properties", then "prompts".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Nov 2014 11:26:23 GMT</pubDate>
    <dc:creator>user24feb</dc:creator>
    <dc:date>2014-11-03T11:26:23Z</dc:date>
    <item>
      <title>%include or some other procedure to call macro with conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-or-some-other-procedure-to-call-macro-with-conditions/m-p/154181#M30239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finally wrote a piece of macro that runs regressions for all variables and data sets in a library and produces ODS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is how can i use %include or something similar to call the macro with user specified conditions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The user doesn't need to see the whole code&lt;/P&gt;&lt;P&gt;I beleive this can be done by saying %include 'path' (where path contains the name of the sas file which has the macro reg_adm);&lt;/P&gt;&lt;P&gt;But &lt;/P&gt;&lt;P&gt;2. I also want the user to specify some parameters like Data set names etc. which I have include in %let statements within the macro reg_adm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Struggling on the last leg of the macro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 11:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-or-some-other-procedure-to-call-macro-with-conditions/m-p/154181#M30239</guid>
      <dc:creator>Jane7476</dc:creator>
      <dc:date>2014-11-03T11:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: %include or some other procedure to call macro with conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-or-some-other-procedure-to-call-macro-with-conditions/m-p/154182#M30240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should look either at&lt;/P&gt;&lt;P&gt;- an Enterprise Guide project with SAS code (you can dor the %inc there) and user prompts&lt;/P&gt;&lt;P&gt;- a stored process with required parameters. A simple web form is all that is required to call the stored process via /SASStoredProcess on the web application server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 11:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-or-some-other-procedure-to-call-macro-with-conditions/m-p/154182#M30240</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-11-03T11:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: %include or some other procedure to call macro with conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-or-some-other-procedure-to-call-macro-with-conditions/m-p/154183#M30241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understood you correctly; 1) include any SAS-code including macros:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Consolas;"&gt; Filename MyFile &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt; font-family: Consolas;"&gt;"C:\Users\Username\Desktop\Test.sas"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Consolas;"&gt; %Include MyFile;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: Consolas;"&gt;2) If you would like to user-friendly replace %let-statements, you might be looking for prompts in the enterprise guide (if you#re using one); right-klick on the code in the EG, then "properties", then "prompts".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 11:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-or-some-other-procedure-to-call-macro-with-conditions/m-p/154183#M30241</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2014-11-03T11:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: %include or some other procedure to call macro with conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-or-some-other-procedure-to-call-macro-with-conditions/m-p/154184#M30242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Yes you understood correctly that I have used %let statements within the code. I want the user to be able to specify the %let when they run the %include statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that my SAS EG is a server based installation and all users don't have a server. They have SAS Base locally installed. Is there a way that I can change the prompt property in SAS base also? (similar to the right click option you have suggested in SAS EG)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 11:56:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-or-some-other-procedure-to-call-macro-with-conditions/m-p/154184#M30242</guid>
      <dc:creator>Jane7476</dc:creator>
      <dc:date>2014-11-03T11:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: %include or some other procedure to call macro with conditions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-or-some-other-procedure-to-call-macro-with-conditions/m-p/154185#M30243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have never tried this, but in principle it is possible to do something similar in SAS Base - but uglier &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; - like with the EG:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/39/007.html" title="http://support.sas.com/kb/39/007.html"&gt;39007 - How to create a simple prompt for user input&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 12:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-or-some-other-procedure-to-call-macro-with-conditions/m-p/154185#M30243</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2014-11-03T12:02:06Z</dc:date>
    </item>
  </channel>
</rss>

