<?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 Custom Tasks for SAS Enterprise Guide - How to use an stored SAS Program in the .NET assembly in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Custom-Tasks-for-SAS-Enterprise-Guide-How-to-use-an-stored-SAS/m-p/247628#M17548</link>
    <description>&lt;P&gt;I am using the code in your book, page 190, as below. I also set the Build Action property to: Embedded Resources.&lt;/P&gt;
&lt;P&gt;The SAS program is in the BatchRun Solution Explore by Add Existing Item. But in the next line, when I use &lt;FONT face="Consolas" size="2" color="#2b91af"&gt;MessageBox&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.Show(macro) to check its value, it is blank. Wondering where did I miss something?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;string&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; macro = SAS.Tasks.Toolkit.Helpers.&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;UtilityFunctions&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.ReadFileFromAssembly(&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#a31515"&gt;"SAS.Tasks.BatchRun.test.sas"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;MessageBox&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.Show(macro);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Yihong&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2016 02:54:25 GMT</pubDate>
    <dc:creator>yhz</dc:creator>
    <dc:date>2016-02-03T02:54:25Z</dc:date>
    <item>
      <title>Custom Tasks for SAS Enterprise Guide - How to use an stored SAS Program in the .NET assembly</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Custom-Tasks-for-SAS-Enterprise-Guide-How-to-use-an-stored-SAS/m-p/247628#M17548</link>
      <description>&lt;P&gt;I am using the code in your book, page 190, as below. I also set the Build Action property to: Embedded Resources.&lt;/P&gt;
&lt;P&gt;The SAS program is in the BatchRun Solution Explore by Add Existing Item. But in the next line, when I use &lt;FONT face="Consolas" size="2" color="#2b91af"&gt;MessageBox&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.Show(macro) to check its value, it is blank. Wondering where did I miss something?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#0000ff"&gt;string&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; macro = SAS.Tasks.Toolkit.Helpers.&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;UtilityFunctions&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.ReadFileFromAssembly(&lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#a31515"&gt;"SAS.Tasks.BatchRun.test.sas"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2" color="#2b91af"&gt;MessageBox&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.Show(macro);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Yihong&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 02:54:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Custom-Tasks-for-SAS-Enterprise-Guide-How-to-use-an-stored-SAS/m-p/247628#M17548</guid>
      <dc:creator>yhz</dc:creator>
      <dc:date>2016-02-03T02:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Tasks for SAS Enterprise Guide - How to use an stored SAS Program in the .NET assembly</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Custom-Tasks-for-SAS-Enterprise-Guide-How-to-use-an-stored-SAS/m-p/247646#M17553</link>
      <description>&lt;P&gt;I think that the most likely cause is a mismatched namespace. &amp;nbsp;In your function call, you reference the "&lt;SPAN&gt;SAS.Tasks.BatchRun" namespace. &amp;nbsp;But is that really the default namespace for your assembly?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check the Project properties (&lt;STRONG&gt;Application&lt;/STRONG&gt; tab) in Visual Studio, and verify that the "Default namespace" is SAS.Tasks.BatchRun. &amp;nbsp;If it's not, you'll have to change your call to ReadFileFromAssembly to match what&amp;nbsp;&lt;STRONG&gt;is&lt;/STRONG&gt; the default namespace.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also verify the embedded resource full name by running ILDASM on your DLL file, and looking at the manifest. &amp;nbsp;That will tell you the full namespace referenced.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 02:28:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Custom-Tasks-for-SAS-Enterprise-Guide-How-to-use-an-stored-SAS/m-p/247646#M17553</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-02-03T02:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Tasks for SAS Enterprise Guide - How to use an stored SAS Program in the .NET assembly</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Custom-Tasks-for-SAS-Enterprise-Guide-How-to-use-an-stored-SAS/m-p/247795#M17561</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is&amp;nbsp;exactly what happened! It works now.&lt;/P&gt;
&lt;P&gt;Thank you very much&amp;nbsp;for your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yihong&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 16:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Custom-Tasks-for-SAS-Enterprise-Guide-How-to-use-an-stored-SAS/m-p/247795#M17561</guid>
      <dc:creator>yhz</dc:creator>
      <dc:date>2016-02-03T16:46:45Z</dc:date>
    </item>
  </channel>
</rss>

