<?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 call SAS macro from another folder in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-call-SAS-macro-from-another-folder/m-p/681719#M206240</link>
    <description>Not 100% sure I'm interpreting your problem correctly but it seems like you want either %INCLUDE or CALL EXECUTE. &lt;BR /&gt;&lt;BR /&gt;%INCLUDE&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=p1s3uhhqtscz2sn1otiatbovfn1t.htm&amp;amp;docsetVersion=1.0&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=p1s3uhhqtscz2sn1otiatbovfn1t.htm&amp;amp;docsetVersion=1.0&amp;amp;locale=en&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;CALL EXECUTE()&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sgf/2017/08/02/call-execute-for-sas-data-driven-programming/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2017/08/02/call-execute-for-sas-data-driven-programming/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 04 Sep 2020 18:11:27 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-09-04T18:11:27Z</dc:date>
    <item>
      <title>How to call SAS macro from another folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-call-SAS-macro-from-another-folder/m-p/681702#M206228</link>
      <description>&lt;P&gt;Hi Reader,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Could you please help me out to call the macro from another location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. This syntax I do not want to repeat, there are many numbers of dset/domain/supp_domain so is there other way to handle such senerio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;%let dset = meta_dm;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;%let domain = dm1001;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;%let supp_domain = suppdm;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Can you please share data step programming macro for below mention meta_dm.&lt;/P&gt;
&lt;P&gt;4. Is there any other way to create meta_dm&amp;nbsp; by just calling?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data meta_dm;&lt;BR /&gt;INFILE CARDS MISSOVER;&lt;BR /&gt;input variable $ label $ suppqual_flag $ remove $;&lt;BR /&gt;cards;&lt;BR /&gt;AAA NAME1 N Y&lt;BR /&gt;BBB NAME2 N&lt;BR /&gt;CCC NAME3 Y&lt;BR /&gt;DDD NAME4 N Y&lt;BR /&gt;&amp;nbsp; ;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;/**********************************************************************************************************/&lt;BR /&gt;&lt;STRONG&gt;%let dset = meta_dm;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;%let domain = dm1001;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;%let supp_domain = suppdm;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;----------------Macro placed at other folder -------------&lt;BR /&gt;proc sql;&lt;BR /&gt;create table &amp;amp;domain as&amp;nbsp;&lt;BR /&gt;select remove ,variable ,label, suppqual_flag&lt;BR /&gt;from &amp;amp;dset&lt;BR /&gt;where remove = "" and variable ^= "" and label ^ = "" and suppqual_flag = "N";&lt;BR /&gt;create table &amp;amp;supp_domain as&amp;nbsp;&lt;BR /&gt;select remove ,variable ,label, suppqual_flag&lt;BR /&gt;from &amp;amp;dset&amp;nbsp;&lt;BR /&gt;where remove = "" and variable ^= "" and label ^ = "" and suppqual_flag = "Y";&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 17:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-call-SAS-macro-from-another-folder/m-p/681702#M206228</guid>
      <dc:creator>pdhokriya</dc:creator>
      <dc:date>2020-09-04T17:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to call SAS macro from another folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-call-SAS-macro-from-another-folder/m-p/681719#M206240</link>
      <description>Not 100% sure I'm interpreting your problem correctly but it seems like you want either %INCLUDE or CALL EXECUTE. &lt;BR /&gt;&lt;BR /&gt;%INCLUDE&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=p1s3uhhqtscz2sn1otiatbovfn1t.htm&amp;amp;docsetVersion=1.0&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=lestmtsref&amp;amp;docsetTarget=p1s3uhhqtscz2sn1otiatbovfn1t.htm&amp;amp;docsetVersion=1.0&amp;amp;locale=en&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;CALL EXECUTE()&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sgf/2017/08/02/call-execute-for-sas-data-driven-programming/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2017/08/02/call-execute-for-sas-data-driven-programming/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Sep 2020 18:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-call-SAS-macro-from-another-folder/m-p/681719#M206240</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-04T18:11:27Z</dc:date>
    </item>
  </channel>
</rss>

