<?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: Passing parameters to a sas macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Passing-parameters-to-a-sas-macro/m-p/467896#M119469</link>
    <description>&lt;P&gt;I figured it out thank for your help&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jun 2018 23:34:38 GMT</pubDate>
    <dc:creator>JBrew</dc:creator>
    <dc:date>2018-06-05T23:34:38Z</dc:date>
    <item>
      <title>Passing parameters to a sas macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Passing-parameters-to-a-sas-macro/m-p/464597#M118465</link>
      <description>&lt;P&gt;I'm trying to create a main SAS program that will run different SAS programs if the criteria fits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example&amp;nbsp;&lt;/P&gt;&lt;P&gt;if this condition then do;&lt;/P&gt;&lt;P&gt;%include "sas programs\myfolder\compliance.sas" ; run;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;%include "sas programs\myfolder\rates.sas; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I pass parameters to these programs?&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 23:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Passing-parameters-to-a-sas-macro/m-p/464597#M118465</guid>
      <dc:creator>JBrew</dc:creator>
      <dc:date>2018-05-23T23:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameters to a sas macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Passing-parameters-to-a-sas-macro/m-p/464605#M118468</link>
      <description>&lt;P&gt;What is in the program files? Is anything set up to accept parameters? What types of values need to be set as parameters?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As much as&amp;nbsp; practical the best way is to place values in data sets in a library other than WORK. Reasons here are so you have the data sets in case of a crash (a very common problem when learning macro coding). Another is that values in a data set can be used with CALL Execute and may obviate the need for separate macros as call execute also builds SAS code statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or do you mean that those scripts have macro definitions that you want to use? If that is the case then %include the files before use so they are available (or investigate SAS Autocall library in documentation). Then add statements to use the macros.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Details missing so pretty generic response.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 23:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Passing-parameters-to-a-sas-macro/m-p/464605#M118468</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-23T23:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Passing parameters to a sas macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Passing-parameters-to-a-sas-macro/m-p/467896#M119469</link>
      <description>&lt;P&gt;I figured it out thank for your help&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 23:34:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Passing-parameters-to-a-sas-macro/m-p/467896#M119469</guid>
      <dc:creator>JBrew</dc:creator>
      <dc:date>2018-06-05T23:34:38Z</dc:date>
    </item>
  </channel>
</rss>

