<?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: Add In : GetSasMacroValue : C# in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-In-GetSasMacroValue-C/m-p/81673#M7931</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a follow up question.&amp;nbsp; Of the examples all look to use a TaskForm to actually execute the task.&amp;nbsp; I have a simple task that I am doing an do not need to expose a windows interface, but do need a custom task (.NET).&amp;nbsp; I just need it executed in the process flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is the SAS interface to be executed without a TaskForm in use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2012 22:32:50 GMT</pubDate>
    <dc:creator>DLARLICK</dc:creator>
    <dc:date>2012-04-12T22:32:50Z</dc:date>
    <item>
      <title>Add In : GetSasMacroValue : C#</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-In-GetSasMacroValue-C/m-p/81671#M7929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I am using C# and have played with some of the examples with success. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to read a macro variable, and have attempted the following two statements.&amp;nbsp;&amp;nbsp; The result is that the addin compiles and runs but does not return the value of the macro variable within the add in. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;SasServer&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; server = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; SAS.Tasks.Toolkit.&lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 10pt; font-family: Consolas;"&gt;SasServer&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;(Consumer.AssignedServer);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;test = server.GetSasMacroValue(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 10pt; font-family: Consolas;"&gt;"MCRNME"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;Does anyone have a working example they would like to share of this method?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 18:26:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-In-GetSasMacroValue-C/m-p/81671#M7929</guid>
      <dc:creator>DLARLICK</dc:creator>
      <dc:date>2012-04-12T18:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Add In : GetSasMacroValue : C#</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-In-GetSasMacroValue-C/m-p/81672#M7930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That should work, just as you have it, as long as the macro variable exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this example and see if the macro variable you're looking for is there:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://blogs.sas.com/content/sasdummy/2011/11/22/inspecting-sas-macro-variables-in-sas-enterprise-guide/"&gt;http://blogs.sas.com/content/sasdummy/2011/11/22/inspecting-sas-macro-variables-in-sas-enterprise-guide/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 18:31:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-In-GetSasMacroValue-C/m-p/81672#M7930</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2012-04-12T18:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add In : GetSasMacroValue : C#</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-In-GetSasMacroValue-C/m-p/81673#M7931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a follow up question.&amp;nbsp; Of the examples all look to use a TaskForm to actually execute the task.&amp;nbsp; I have a simple task that I am doing an do not need to expose a windows interface, but do need a custom task (.NET).&amp;nbsp; I just need it executed in the process flow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is the SAS interface to be executed without a TaskForm in use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 22:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-In-GetSasMacroValue-C/m-p/81673#M7931</guid>
      <dc:creator>DLARLICK</dc:creator>
      <dc:date>2012-04-12T22:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add In : GetSasMacroValue : C#</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-In-GetSasMacroValue-C/m-p/81674#M7932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Task class Show() method (which you override from the SasTask class), simply return ShowResult.RunNow, without creating/showing the form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 23:13:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Add-In-GetSasMacroValue-C/m-p/81674#M7932</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2012-04-12T23:13:11Z</dc:date>
    </item>
  </channel>
</rss>

