<?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 get the unique value from a ISASTaskConsumer3.ActiveData in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-unique-value-from-a-ISASTaskConsumer3-ActiveData/m-p/117646#M9903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chris, this is good way to do it. There are a lot of API Functions in the Help Document. I should take a close look.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="111.jpg" class="jive-image" src="https://communities.sas.com/legacyfs/online/2540_111.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2012 03:33:00 GMT</pubDate>
    <dc:creator>Slash</dc:creator>
    <dc:date>2012-09-12T03:33:00Z</dc:date>
    <item>
      <title>How to get the unique value from a ISASTaskConsumer3.ActiveData</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-unique-value-from-a-ISASTaskConsumer3-ActiveData/m-p/117644#M9901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am use C# to write a EG Add-in. What I want is to get a specified variable's unique value. I can get the specified column and row's value through the Consumer.ActiveData.Accessor.Value property.&lt;/P&gt;&lt;P&gt;I have a idea:&lt;/P&gt;&lt;P&gt;Submit a sql code to get the unique value and create a temp data set;&lt;/P&gt;&lt;P&gt;And I get the unique value from the temp data set.&lt;/P&gt;&lt;P&gt;But I think this is too complex and waste too much resources. Is there a easy way to do this?&lt;/P&gt;&lt;P&gt;Just like the Filter and Sort Node in the EG, the pic:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2539_1.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 05:29:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-unique-value-from-a-ISASTaskConsumer3-ActiveData/m-p/117644#M9901</guid>
      <dc:creator>Slash</dc:creator>
      <dc:date>2012-09-11T05:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the unique value from a ISASTaskConsumer3.ActiveData</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-unique-value-from-a-ISASTaskConsumer3-ActiveData/m-p/117645#M9902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Slash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this blog post for a small example of using the SAS.Tasks.Toolkit.SasData namespace:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://blogs.sas.com/content/sasdummy/2012/07/16/listing-the-data-sets-in-a-library-within-your-custom-task/" title="http://blogs.sas.com/content/sasdummy/2012/07/16/listing-the-data-sets-in-a-library-within-your-custom-task/"&gt;Listing the data sets in a library within your custom task - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then look at this helper method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS.Tasks.Toolkit.Helpers.TaskDataHelpers.GetDistinctValues()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It returns a List&amp;lt;string&amp;gt; collection of formatted values from the data you specify, using a SAS format that you specify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 18:16:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-unique-value-from-a-ISASTaskConsumer3-ActiveData/m-p/117645#M9902</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2012-09-11T18:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the unique value from a ISASTaskConsumer3.ActiveData</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-unique-value-from-a-ISASTaskConsumer3-ActiveData/m-p/117646#M9903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chris, this is good way to do it. There are a lot of API Functions in the Help Document. I should take a close look.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="111.jpg" class="jive-image" src="https://communities.sas.com/legacyfs/online/2540_111.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2012 03:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-get-the-unique-value-from-a-ISASTaskConsumer3-ActiveData/m-p/117646#M9903</guid>
      <dc:creator>Slash</dc:creator>
      <dc:date>2012-09-12T03:33:00Z</dc:date>
    </item>
  </channel>
</rss>

