<?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: Set UNIQUEINDEX option in &amp;quot;Create or Add to a Cluster&amp;quot; Transformation in DIS 4.901 in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Set-UNIQUEINDEX-option-in-quot-Create-or-Add-to-a-Cluster-quot/m-p/304339#M8662</link>
    <description>Maybe I missed something but I believe you can't define this for a cluster. It's like you indicate an attribute on a single table index definition. &lt;BR /&gt;The consequence is that for a cluster uniqueindex = no is implicit.</description>
    <pubDate>Thu, 13 Oct 2016 11:45:22 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-10-13T11:45:22Z</dc:date>
    <item>
      <title>Set UNIQUEINDEX option in "Create or Add to a Cluster" Transformation in DIS 4.901</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Set-UNIQUEINDEX-option-in-quot-Create-or-Add-to-a-Cluster-quot/m-p/304323#M8661</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;We are using SAS Data Integration Studio 4.901 on SAS 9.4M3 and make use of Dynamic Cluster Tables in SPDS.&lt;/P&gt;
&lt;P&gt;When making use of the "Create or Add to a Cluster" transformation basically the following code is created:&lt;/P&gt;
&lt;PRE&gt;PROC SPDO LIB=&amp;lt;library&amp;gt;;
    CLUSTER CREATE &amp;lt;cluster name&amp;gt;
    MEM=&amp;lt;dataset 1&amp;gt;
    MEM=&amp;lt;dataset 2&amp;gt;
    ....
    MEM=&amp;lt;dataset n&amp;gt;
    MAXSLOT=&amp;lt;n&amp;gt;
    ;
QUIT;&lt;/PRE&gt;
&lt;P&gt;We do have unique indexes per cluster table but do NOT want the unique index to be validated&amp;nbsp;over all tables.&lt;/P&gt;
&lt;P&gt;However the option that controls this (UNIQUEINDEX) defaults to YES.&lt;/P&gt;
&lt;P&gt;As such we like to add the UNIQUEINDEX=NO option, as described &lt;A title="Dynamic Cluster Table Operations" href="http://support.sas.com/documentation/cdl/en/spdsug/67358/HTML/default/viewer.htm#p1e8tlzjl677v8n1w4th6f4idtqa.htm" target="_blank"&gt;here&lt;/A&gt;, to the above indicated code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have looked for ways to add this option within the indicated transformation but just can not find it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I overlooking something or is this not possible with the transformation as it is at the moment?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TIA,&lt;/P&gt;
&lt;P&gt;--Resa&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Set-UNIQUEINDEX-option-in-quot-Create-or-Add-to-a-Cluster-quot/m-p/304323#M8661</guid>
      <dc:creator>Resa</dc:creator>
      <dc:date>2016-10-13T11:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set UNIQUEINDEX option in "Create or Add to a Cluster" Transformation in DIS 4.901</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Set-UNIQUEINDEX-option-in-quot-Create-or-Add-to-a-Cluster-quot/m-p/304339#M8662</link>
      <description>Maybe I missed something but I believe you can't define this for a cluster. It's like you indicate an attribute on a single table index definition. &lt;BR /&gt;The consequence is that for a cluster uniqueindex = no is implicit.</description>
      <pubDate>Thu, 13 Oct 2016 11:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Set-UNIQUEINDEX-option-in-quot-Create-or-Add-to-a-Cluster-quot/m-p/304339#M8662</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-10-13T11:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set UNIQUEINDEX option in "Create or Add to a Cluster" Transformation in DIS 4.901</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Set-UNIQUEINDEX-option-in-quot-Create-or-Add-to-a-Cluster-quot/m-p/304344#M8663</link>
      <description>&lt;P&gt;Not sure if I fully understand your comment. But my understanding is that this option is&amp;nbsp;defined at cluster level during the creation of the cluster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As described in the &lt;A title="Cluster Create" href="http://support.sas.com/documentation/cdl/en/spdsug/67358/HTML/default/viewer.htm#p07b1tfynuqebqn1flsvrsfokyh8.htm" target="_blank"&gt;SPD Server SQL Cluster Operations&lt;/A&gt;&amp;nbsp;for the cluster creation:&lt;/P&gt;
&lt;P&gt;After you have organized the SPD Server tables, issue a PROC SPDO command to bind the tables into a dynamic cluster table.&lt;BR /&gt;The general form for the PROC SPDO cluster create command is as follows:&lt;/P&gt;
&lt;PRE&gt;CLUSTER CREATE &amp;lt;cluster-tablename&amp;gt;   MEM|MEMBER=&amp;lt;membername&amp;gt;
  MAXSLOT=&amp;lt;max-slot-num-spec&amp;gt;  UNIQUEINDEX=YES|NO
  DELETE=YES|NO;&lt;/PRE&gt;
&lt;P&gt;The CLUSTER CREATE command options are as follows:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;UNIQUEINDEX=YES|NO validates a unique index. The default setting is YES.&lt;/LI&gt;
&lt;LI&gt;DELETE=YES|NO permanently deletes the cluster and its members. The default setting is NO.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The indicated transformation, as far as I can see, generates code for the following part of the code:&lt;/P&gt;
&lt;PRE&gt;CLUSTER CREATE &amp;lt;cluster-tablename&amp;gt;   MEM|MEMBER=&amp;lt;membername&amp;gt;
  MAXSLOT=&amp;lt;max-slot-num-spec&amp;gt;;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However there are no possibilities - what I can see - to add/alter either the UNIQUEINDEX or DELETE option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV id="n0ccth0ang7gzon1d3fp7ica0jgt" class="xis-paragraph"&gt;&amp;nbsp;For reference (from the SPD Server 4.4 Administration Guide):&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&lt;EM&gt;"The CLUSTER CREATE command in PROC SPDO has a new option that allows the user to specify whether unique indexes that are defined in the member tables should be validated and marked as unique in the cluster. If the UNIQUEINDEX option is set to No, then unique indexes are not validated, and the cluster metadata does not mark the indexes as unique within the cluster. If the UNIQUEINDEX option is not specified, then it defaults to YES and the indexes are validated and marked unique within the&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;cluster."&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;We do not require this validation and as such would like to set the option to NO.&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Oct 2016 12:21:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Set-UNIQUEINDEX-option-in-quot-Create-or-Add-to-a-Cluster-quot/m-p/304344#M8663</guid>
      <dc:creator>Resa</dc:creator>
      <dc:date>2016-10-13T12:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set UNIQUEINDEX option in "Create or Add to a Cluster" Transformation in DIS 4.901</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Set-UNIQUEINDEX-option-in-quot-Create-or-Add-to-a-Cluster-quot/m-p/304361#M8664</link>
      <description>&lt;P&gt;So it was clearly something I've missed.&lt;/P&gt;
&lt;P&gt;If you can't set it to NO in DI Studio (I don't have it at my fingertips at the moment), make a copy of the transformation and add a UNIQUEINDEX parameter, and modify the code accordingly.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 13:16:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Set-UNIQUEINDEX-option-in-quot-Create-or-Add-to-a-Cluster-quot/m-p/304361#M8664</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-10-13T13:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set UNIQUEINDEX option in "Create or Add to a Cluster" Transformation in DIS 4.901</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Set-UNIQUEINDEX-option-in-quot-Create-or-Add-to-a-Cluster-quot/m-p/304365#M8665</link>
      <description>&lt;P&gt;That was my plan B &amp;nbsp;&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;BR /&gt;I was hoping that I had missed something in the transformation.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 14:53:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Set-UNIQUEINDEX-option-in-quot-Create-or-Add-to-a-Cluster-quot/m-p/304365#M8665</guid>
      <dc:creator>Resa</dc:creator>
      <dc:date>2016-10-13T14:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set UNIQUEINDEX option in "Create or Add to a Cluster" Transformation in DIS 4.901</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Set-UNIQUEINDEX-option-in-quot-Create-or-Add-to-a-Cluster-quot/m-p/304579#M8672</link>
      <description>&lt;P&gt;In the mean time I have completed your suggested solution and have a new transformation that allows the user to set the option for UNIQUEINDEX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And - while I was at it - also modified the "List Cluster Content" transformation to include the "/VERBOSE" and "OUT=" option (as described in "&lt;A href="http://support.sas.com/documentation/cdl/en/spdsug/67358/HTML/default/viewer.htm#p01g9ecohspo1xn1o7lle9vxbasc.htm" target="_self"&gt;Querying and Reading Member Tables in a Dynamic Cluster&lt;/A&gt;". This opposed to the included version that uses the content of the macro variable SPDSLIST to generate a list of members, does not allow the inclusion of the values for the variables that are included in the MINMAXVARLIST and does not have an actual output table in the transformation.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 09:22:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Set-UNIQUEINDEX-option-in-quot-Create-or-Add-to-a-Cluster-quot/m-p/304579#M8672</guid>
      <dc:creator>Resa</dc:creator>
      <dc:date>2016-10-14T09:22:14Z</dc:date>
    </item>
  </channel>
</rss>

