<?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 Passing macro values to a stored process in EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Passing-macro-values-to-a-stored-process-in-EG/m-p/24470#M3711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Couldn't you just set up hidden prompts and then use the macro variables as parameter values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jan 2012 01:09:53 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2012-01-05T01:09:53Z</dc:date>
    <item>
      <title>Passing macro values to a stored process in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Passing-macro-values-to-a-stored-process-in-EG/m-p/24469#M3710</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;Is it possible to pass macro variable values that are present during a SAS Enterprise Guide session to a stored process that is run in that session? In other words, I don’t want to pass parameters manually into a stored process using prompts, but automatically using macro variables that exist within the SAS EG session from which it is run by the user?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 22:39:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Passing-macro-values-to-a-stored-process-in-EG/m-p/24469#M3710</guid>
      <dc:creator>nrose</dc:creator>
      <dc:date>2012-01-04T22:39:43Z</dc:date>
    </item>
    <item>
      <title>Passing macro values to a stored process in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Passing-macro-values-to-a-stored-process-in-EG/m-p/24470#M3711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Couldn't you just set up hidden prompts and then use the macro variables as parameter values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 01:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Passing-macro-values-to-a-stored-process-in-EG/m-p/24470#M3711</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-01-05T01:09:53Z</dc:date>
    </item>
    <item>
      <title>Passing macro values to a stored process in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Passing-macro-values-to-a-stored-process-in-EG/m-p/24471#M3712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried that, but it appears that when you run a stored process, it spawns a new SAS session, which is seperate from the SAS EG session from which it is run. Therefore, macro variables within the SAS EG session are not passed to the stored process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, my impression is that there is no way to automatically pass macro variable or other values from a SAS session to a stored process unless entered by a user from a prompt or, unless proc STP is used from a SAS program, which doesn't really solve my problem. Is this correct, or am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 06:06:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Passing-macro-values-to-a-stored-process-in-EG/m-p/24471#M3712</guid>
      <dc:creator>nrose</dc:creator>
      <dc:date>2012-01-05T06:06:38Z</dc:date>
    </item>
    <item>
      <title>Passing macro values to a stored process in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Passing-macro-values-to-a-stored-process-in-EG/m-p/24472#M3713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you could try to do is to create a text file or a SAS dataset with these key/value pairs (eg. as part of an autoexec) which is also accessible via the stored process server - and then use these information in your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 01:10:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Passing-macro-values-to-a-stored-process-in-EG/m-p/24472#M3713</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-01-06T01:10:58Z</dc:date>
    </item>
  </channel>
</rss>

