<?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: Which transformation to use and how in SAS DI Studio in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Which-transformation-to-use-and-how-in-SAS-DI-Studio/m-p/389727#M11772</link>
    <description>&lt;P&gt;Thanks for your quick response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used Extract transformation in place of create table or splitter and got the same result but i practiced with all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for quick support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Uma Shanker Saini&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2017 06:49:31 GMT</pubDate>
    <dc:creator>umashankersaini</dc:creator>
    <dc:date>2017-08-22T06:49:31Z</dc:date>
    <item>
      <title>Which transformation to use and how in SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Which-transformation-to-use-and-how-in-SAS-DI-Studio/m-p/387553#M11692</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I have a table which contains 11 variable (ID, Prod1--Prod10). I am getting desired output by following query but i need to make a DI job for the same, Kindly assist which transformation to use and how ( User written transformation is not allowed).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried with join + subqery but i was not able to make that, if this one is the correct way, it would be greatful if i could have step by step for that or any pdf link or video link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc sql;&lt;BR /&gt;Select * from &lt;BR /&gt;(Select distinct(ID), Product1 from table1&lt;BR /&gt;Union&lt;BR /&gt;Select distinct(ID), Product1 from table1&lt;BR /&gt;Union&lt;BR /&gt;Select distinct(ID), Product2 from table1&lt;BR /&gt;Union&lt;BR /&gt;Select distinct(ID), Product3 from table1&lt;BR /&gt;Union&lt;BR /&gt;Select distinct(ID), Product4 from table1&lt;BR /&gt;Union&lt;BR /&gt;Select distinct(ID), Product5 from table1&lt;BR /&gt;Union&lt;BR /&gt;Select distinct(ID), Product6 from table1&lt;BR /&gt;Union&lt;BR /&gt;Select distinct(ID), Product7 from table1&lt;BR /&gt;Union&lt;BR /&gt;Select distinct(ID), Product8 from table1&lt;BR /&gt;Union&lt;BR /&gt;Select distinct(ID), Product9 from table1&lt;BR /&gt;Union&lt;BR /&gt;Select distinct(ID), Product10 from table1&lt;BR /&gt;)R;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Uma Shanker Saini&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2017 05:29:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Which-transformation-to-use-and-how-in-SAS-DI-Studio/m-p/387553#M11692</guid>
      <dc:creator>umashankersaini</dc:creator>
      <dc:date>2017-08-12T05:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Which transformation to use and how in SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Which-transformation-to-use-and-how-in-SAS-DI-Studio/m-p/387562#M11693</link>
      <description>The obvious choice is the SQL Set Operators tranformation.&lt;BR /&gt;The documentation has examples that should get you going.</description>
      <pubDate>Sat, 12 Aug 2017 07:35:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Which-transformation-to-use-and-how-in-SAS-DI-Studio/m-p/387562#M11693</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-08-12T07:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Which transformation to use and how in SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Which-transformation-to-use-and-how-in-SAS-DI-Studio/m-p/387625#M11694</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/46512"&gt;@umashankersaini&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Use the SQL SET transformation as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;&amp;nbsp;proposes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe below SQL returns the same result and is a bit easier to define in DIS.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc sql;
  Select id, Product1 as Product from table1
    Union
  Select id, Product2 as Product from table1
    Union
  Select id, Product3 as Product from table1
  ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 13 Aug 2017 10:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Which-transformation-to-use-and-how-in-SAS-DI-Studio/m-p/387625#M11694</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-08-13T10:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Which transformation to use and how in SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Which-transformation-to-use-and-how-in-SAS-DI-Studio/m-p/389458#M11765</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for quick reply and sorry for my late response (implementation).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While using set operator transformation, i am not able to add same table for union ( as required).&lt;/P&gt;
&lt;P&gt;I can add one table only one time but as per my need i have to do union on same table multiple time but i am unable to do so,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly suggest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Uma Shanker Saini&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 06:04:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Which-transformation-to-use-and-how-in-SAS-DI-Studio/m-p/389458#M11765</guid>
      <dc:creator>umashankersaini</dc:creator>
      <dc:date>2017-08-21T06:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Which transformation to use and how in SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Which-transformation-to-use-and-how-in-SAS-DI-Studio/m-p/389467#M11766</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/46512"&gt;@umashankersaini&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Drag the table metadata object multiple&amp;nbsp;times onto the job canvas and link the objects all as input to the SQL SET transformation. This should allow you to use the same physical table multiple times.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Just tried and actually what I've proposed above appears to not work. DIS doesn't let me connect the same metadata object more than once to the SQL SET transformation as input.&lt;/P&gt;
&lt;P&gt;Below two approaches which work. The 2nd one using a Create Table transformation has the advantage that you can define the output table as a view and though you're not physically replicating the data multiple times.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 545px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14575i5531F5596678514A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 21:53:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Which-transformation-to-use-and-how-in-SAS-DI-Studio/m-p/389467#M11766</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-08-21T21:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Which transformation to use and how in SAS DI Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Which-transformation-to-use-and-how-in-SAS-DI-Studio/m-p/389727#M11772</link>
      <description>&lt;P&gt;Thanks for your quick response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have used Extract transformation in place of create table or splitter and got the same result but i practiced with all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for quick support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Uma Shanker Saini&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 06:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Which-transformation-to-use-and-how-in-SAS-DI-Studio/m-p/389727#M11772</guid>
      <dc:creator>umashankersaini</dc:creator>
      <dc:date>2017-08-22T06:49:31Z</dc:date>
    </item>
  </channel>
</rss>

