<?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: Copying an existing table taking very long in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Copying-an-existing-table-taking-very-long/m-p/510445#M15822</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;I don't think ID is indexed. Can you show me how to index it? Would it be like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
   create index ID
      on MySasTable(ID);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also, does it only make sense to index columns with unique values, or can I index a value that may split the table in half like Identifier column that stores M for male of F for female?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Nov 2018 15:34:19 GMT</pubDate>
    <dc:creator>jim_toby</dc:creator>
    <dc:date>2018-11-05T15:34:19Z</dc:date>
    <item>
      <title>Copying an existing table taking very long</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Copying-an-existing-table-taking-very-long/m-p/510365#M15816</link>
      <description>&lt;P&gt;So my main objective is to load up a sas table into netezza. However, I am getting the error:&amp;nbsp;&lt;STRONG&gt;Error terminating Netezza load: Communication link failure.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was told here:&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://communities.sas.com/t5/SAS-Data-Management/Loading-SAS-To-Netezza-Communication-Link-Failure/m-p/509940#M15814" target="_self"&gt;https://communities.sas.com/t5/SAS-Data-Management/Loading-SAS-To-Netezza-Communication-Link-Failure/m-p/509940#M15814&lt;/A&gt;&lt;/STRONG&gt; that this error could be that my table may be too big. I tried distributing on certain column names and on random but I still get the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The next plan is to split the table into different smaller tables and than inserting each table into a single table in netezza. The problem is that copying an existing table (even if it is just one record) takes around 30 minutes. Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME ECLIB000 "\path\to\SASTable";
proc sql;
create table ECLIB000.TestTable as
select * from ECLIB000.MySasTable
where ID = 'R988664335710II';
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So there is only one row with the specified ID. The table I need to copy from has over 34 million rows and 50 columns. I'm worried that if copying one records takes this long, how long would it take to copy half of the table? Would it take the same amount of time since it needs to iterate over each row? Is there a better way in accomplishing what I am trying to accomplish? For instance in the link I sent above, it was suggested that I use SAS views? Is that better in order to load the data into Netezza?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 12:48:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Copying-an-existing-table-taking-very-long/m-p/510365#M15816</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-05T12:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Copying an existing table taking very long</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Copying-an-existing-table-taking-very-long/m-p/510390#M15817</link>
      <description>&lt;P&gt;Is ID indexed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 14:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Copying-an-existing-table-taking-very-long/m-p/510390#M15817</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-11-05T14:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Copying an existing table taking very long</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Copying-an-existing-table-taking-very-long/m-p/510398#M15818</link>
      <description>&lt;P&gt;If ID is not indexed all rows have to be read, which is most likely the reason for the amount of time required to extract the observation. Creating an index on a 34 million row dataset is time-consuming, too, but could speed up extracting rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should have a look at the log, too. Check real-time and cpu-time of that proc sql step: if real-time is much higher than cpu-time, the sas jobs is waiting to get the data, this could be caused by slow hard-disks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 14:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Copying-an-existing-table-taking-very-long/m-p/510398#M15818</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-11-05T14:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Copying an existing table taking very long</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Copying-an-existing-table-taking-very-long/m-p/510445#M15822</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;I don't think ID is indexed. Can you show me how to index it? Would it be like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
   create index ID
      on MySasTable(ID);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also, does it only make sense to index columns with unique values, or can I index a value that may split the table in half like Identifier column that stores M for male of F for female?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:34:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Copying-an-existing-table-taking-very-long/m-p/510445#M15822</guid>
      <dc:creator>jim_toby</dc:creator>
      <dc:date>2018-11-05T15:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Copying an existing table taking very long</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Copying-an-existing-table-taking-very-long/m-p/510450#M15823</link>
      <description>&lt;P&gt;I don't use proc sql for such tasks, here is an example using proc datasets:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.classclone;
   set sashelp.class;
run;

proc datasets library=work noprint;
   modify classclone;
      index create Age;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Nov 2018 15:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Copying-an-existing-table-taking-very-long/m-p/510450#M15823</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-11-05T15:39:25Z</dc:date>
    </item>
  </channel>
</rss>

