<?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: SAS DI and hive unique key generator in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275819#M7751</link>
    <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31762"&gt;@Sheeba&lt;/a&gt;: I don't think you see the flow clear. To be able to use DI Studio you need to have data in some point into SAS tables. In rare occasions you could do 100% ELT, but that requires careful design and implementation. So the question is, do you really need to do 100 % ELT? &lt;BR /&gt;Start with the default DI Studio functionality and analyze the performance.</description>
    <pubDate>Tue, 07 Jun 2016 21:58:50 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-06-07T21:58:50Z</dc:date>
    <item>
      <title>SAS DI and hive unique key generator</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275803#M7747</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i am trying to load&amp;nbsp;data from file &amp;nbsp;into sas and load the same file into a hive table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is there anyway i can generate a unique id in hive table at record level? is there any transformaton which helps in unique key generation in hive? Also is it possible to keep the unique keys in synch in both sas and hive?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sheeba&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 20:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275803#M7747</guid>
      <dc:creator>Sheeba</dc:creator>
      <dc:date>2016-06-07T20:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI and hive unique key generator</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275810#M7749</link>
      <description>&lt;P&gt;DI Studio has the Surrogate Key generator. Have a look at the&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/etlug/62233/HTML/default/viewer.htm#n06jovhwiuuzu9n15rr036epzo8p.htm" target="_self"&gt;doc&lt;/A&gt;. And if you add it to the SAS table which is subsequently loaded into hive, wouldn't they be automatically in sync?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;-Jan&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 21:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275810#M7749</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-06-07T21:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI and hive unique key generator</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275816#M7750</link>
      <description>&lt;P&gt;Hi Jan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can we use the surrogate key generator for Hive tables as well?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Design is to load the data from file to sas and again from file to hive .&amp;nbsp;I am&amp;nbsp;not loading data from sas to hive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sheeba&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 21:42:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275816#M7750</guid>
      <dc:creator>Sheeba</dc:creator>
      <dc:date>2016-06-07T21:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI and hive unique key generator</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275819#M7751</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31762"&gt;@Sheeba&lt;/a&gt;: I don't think you see the flow clear. To be able to use DI Studio you need to have data in some point into SAS tables. In rare occasions you could do 100% ELT, but that requires careful design and implementation. So the question is, do you really need to do 100 % ELT? &lt;BR /&gt;Start with the default DI Studio functionality and analyze the performance.</description>
      <pubDate>Tue, 07 Jun 2016 21:58:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275819#M7751</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-06-07T21:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI and hive unique key generator</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275820#M7752</link>
      <description>&lt;P&gt;Hi Linush,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Due to certain constraints we going for an ELT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;File x&amp;nbsp;from System A --&amp;gt; SAS --&amp;gt; data modification&lt;/P&gt;
&lt;P&gt;File x&amp;nbsp;from System A --&amp;gt; hive--&amp;gt; data modification&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create a unique id in both sas and hive at record level and trying to keep both in synch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sheeba&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 22:14:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275820#M7752</guid>
      <dc:creator>Sheeba</dc:creator>
      <dc:date>2016-06-07T22:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI and hive unique key generator</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275823#M7753</link>
      <description>&lt;P&gt;You may want to think of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;File x&amp;nbsp;from System A --&amp;gt; hive--&amp;gt; data modification--&amp;gt; SAS --&amp;gt; other data modification&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 22:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275823#M7753</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-06-07T22:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI and hive unique key generator</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275825#M7754</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But due to some constraints I am not planning to transfer the data between SAS and hive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking for something like a surrogate key generator which can be used in hive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sheeba&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2016 22:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275825#M7754</guid>
      <dc:creator>Sheeba</dc:creator>
      <dc:date>2016-06-07T22:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI and hive unique key generator</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275918#M7758</link>
      <description>&lt;P&gt;Then you need to look at Hive functionality, not SAS/DI Studio.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 10:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275918#M7758</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-06-08T10:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI and hive unique key generator</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275920#M7759</link>
      <description>&lt;P&gt;"&lt;/P&gt;
&lt;P&gt;File x&amp;nbsp;from System A --&amp;gt; SAS --&amp;gt; data modification&lt;/P&gt;
&lt;P&gt;File x&amp;nbsp;from System A --&amp;gt; hive--&amp;gt; data modification&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create a unique id in both sas and hive at record level and trying to keep both in synch."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't understand. Are you building two parallel flows, and want to create a key both in SAS and in Hive and want them to be in sync...? Please exemplify&amp;nbsp;with sample data, and elaborate about the end results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, define "some constraints".&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 10:29:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275920#M7759</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-06-08T10:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI and hive unique key generator</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275925#M7760</link>
      <description>&lt;P&gt;So if I understand correctly you want to have two separate processes (SAS and Hive) for loading the data and still keep the keys in sync. I can think of one way but it depends on the existence of a primary key ijn your data (which is always a good idea). In the past I have used the MD5 function and fed it the variables that make up the key. MD5 should be portable enough that it would generate the same outcome for both Hive and SAS. If you are afraid of clashes (two different keys with the same MD5 summ, not unlikely) use the more modern SHA256 alternative. Thius yields a larger hash but the chances of a clash are very small indeed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course any approach you like can be applied, even plain concatenation of the values, provided there is such a key available in your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 11:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/275925#M7760</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2016-06-08T11:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI and hive unique key generator</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/276017#M7769</link>
      <description>&lt;P&gt;Hi Jan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will do more research on MD5&amp;nbsp; and SHA256&amp;nbsp;. But what is making it more complicated there is no unique combination of values which identify a record. So with this condition, do you think i will be able to implement the same?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sheeba&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 16:16:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/276017#M7769</guid>
      <dc:creator>Sheeba</dc:creator>
      <dc:date>2016-06-08T16:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI and hive unique key generator</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/276018#M7770</link>
      <description>&lt;P&gt;Hi Linush,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We decided to go with this flow thinking about performance issues while loading from Sas to hive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is exactly as you said am building two flows and want to create a key both in SAS and in Hive and want them to be in sync.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also there is no primary key value for data .so I am trying to create a key and keep it same for a record in both sas and hive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it is more clear now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sheeba&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 16:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/276018#M7770</guid>
      <dc:creator>Sheeba</dc:creator>
      <dc:date>2016-06-08T16:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI and hive unique key generator</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/276087#M7772</link>
      <description>If you don't have a clear business key, how would you ever expect to manage synchronised surrogate keys?&lt;BR /&gt;&lt;BR /&gt;Instead of reveal small parts each time, and get non relevant sugestions: describe as complete as possible your business  case, source data, data manipulation rules and the constraints you have.&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jun 2016 19:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/276087#M7772</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-06-08T19:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI and hive unique key generator</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/276955#M7827</link>
      <description>&lt;P&gt;Hi Linush,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sure..I will keep all this points in mind while posting.. Sorry about that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sheeba&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 15:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DI-and-hive-unique-key-generator/m-p/276955#M7827</guid>
      <dc:creator>Sheeba</dc:creator>
      <dc:date>2016-06-13T15:09:37Z</dc:date>
    </item>
  </channel>
</rss>

