<?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: Creating a sas compressed dataset from a teradata table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453230#M283981</link>
    <description>&lt;P&gt;Hello ChrisNZ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. We just have the base SAS engine. SPD is very interesting though. Probably can suggest moving to SPD during an upgrade.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2018 14:19:52 GMT</pubDate>
    <dc:creator>RupaJ</dc:creator>
    <dc:date>2018-04-11T14:19:52Z</dc:date>
    <item>
      <title>Creating a sas compressed dataset from a teradata table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453001#M283976</link>
      <description>&lt;PRE&gt;I am trying to create a work table from teradata libname statement. The teradata table as Count(*) 5610421124 (5.6 Billion)
the sas dataset that gets produced only has 1.3 billion records. There is no error in the log. 
What could be the reason for records getting dropped? &lt;BR /&gt;Below is the sas code
data diagnosis (compress=yes);
     set pcordata.diagnosis;
run; 

Error Message:
   no errors &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 23:14:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453001#M283976</guid>
      <dc:creator>RupaJ</dc:creator>
      <dc:date>2018-04-10T23:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a sas compressed dataset from a teradata table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453005#M283977</link>
      <description>&lt;P&gt;5.6 billion records is massive amount of data to move from one system to another. Is there any special reason you are doing it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 23:35:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453005#M283977</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-04-10T23:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a sas compressed dataset from a teradata table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453018#M283978</link>
      <description>&lt;P&gt;A data step is not the fastest method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you have a libname set up, PROC COPY and/or PROC DATASETS is faster - it moves data in blocks since it doesn't expect things to change. In a data step you can add changes, but since you're not doing any of that here, it's faster to use PROC COPY.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC COPY/DATASETS use the same process so it doesn't matter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Moving that amount of records takes time no matter what though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185092"&gt;@RupaJ&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;PRE&gt;I am trying to create a work table from teradata libname statement. The teradata table as Count(*) 5610421124 (5.6 Billion)
the sas dataset that gets produced only has 1.3 billion records. There is no error in the log. 
What could be the reason for records getting dropped? &lt;BR /&gt;Below is the sas code
data diagnosis (compress=yes);
     set pcordata.diagnosis;
run; 

Error Message:
   no errors &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 00:41:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453018#M283978</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-11T00:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a sas compressed dataset from a teradata table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453065#M283979</link>
      <description>&lt;P&gt;Considering the likely size of such a long table, and supposing this data transfer is really necessary, I would strongly suggest copying to a binary-compressed SPDE library. Compression ratios are much higher than&amp;nbsp;with&amp;nbsp;the BASE or V9 engines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname DEST spde "path-string" compress=binary partsize=50g;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 04:32:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453065#M283979</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-04-11T04:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a sas compressed dataset from a teradata table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453133#M283980</link>
      <description>&lt;P&gt;use&amp;nbsp; fastexport teradta utlility to bulk transfer the data. you can do it by using fastexport = yes in your teradata libname statement as shown below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="xis-codeFragment"&gt;Libname tera Teradata user=myusr1 pw=mypwd1 FASTEXPORT=YES;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Apr 2018 10:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453133#M283980</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-04-11T10:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a sas compressed dataset from a teradata table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453230#M283981</link>
      <description>&lt;P&gt;Hello ChrisNZ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. We just have the base SAS engine. SPD is very interesting though. Probably can suggest moving to SPD during an upgrade.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 14:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453230#M283981</guid>
      <dc:creator>RupaJ</dc:creator>
      <dc:date>2018-04-11T14:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a sas compressed dataset from a teradata table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453231#M283982</link>
      <description>&lt;P&gt;Thanks for the response!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will surely try the fastexport and proc copy.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 14:21:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453231#M283982</guid>
      <dc:creator>RupaJ</dc:creator>
      <dc:date>2018-04-11T14:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a sas compressed dataset from a teradata table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453365#M283983</link>
      <description>&lt;P&gt;The SPDE engine is part of SAS Base.&lt;/P&gt;
&lt;P&gt;Use it and marvel at all you've missed.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 23:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453365#M283983</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-04-11T23:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a sas compressed dataset from a teradata table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453412#M283984</link>
      <description>&lt;P&gt;What are all the features of SPDS, I mean what are the best use cases to opt for SPD ? does it make proc sort faster ?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 23:51:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453412#M283984</guid>
      <dc:creator>Go</dc:creator>
      <dc:date>2018-04-11T23:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a sas compressed dataset from a teradata table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453414#M283985</link>
      <description>&lt;P&gt;SPDE, not SPDS. The latter is a full storage and processing platform.&lt;/P&gt;
&lt;P&gt;Yes sorts can be faster if they are not memory-bound, since significantly fewer I/Os are needed&amp;nbsp;for a compressed SPDE table.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 00:03:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453414#M283985</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-04-12T00:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a sas compressed dataset from a teradata table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453760#M283986</link>
      <description>&lt;P&gt;Yes. Figured that :-). So with fastexport it took 10 hours and with SPDE it took 6 hours. Here is my libname stmt.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname allus spde '/SAS_Work' compress=binary partsize=&lt;STRONG&gt;50&lt;/STRONG&gt;g;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can we make it run any faster?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 20:58:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453760#M283986</guid>
      <dc:creator>RupaJ</dc:creator>
      <dc:date>2018-04-12T20:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a sas compressed dataset from a teradata table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453765#M283987</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;gt; So with fastexport it took 10 hours and with SPDE it took 6 hours. Here is my libname stmt.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You should use both.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;fastexport deals with the teradata side and spde with&amp;nbsp;the sas side.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You need to identify where the bottleneck is before you continue this investigation. Also look at the network.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 21:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453765#M283987</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-04-12T21:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a sas compressed dataset from a teradata table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453840#M283988</link>
      <description>&lt;P&gt;If you are disk I/O bound then you can tell SPDE engine to spread the partitions across multiple physical disks by giving it more paths to use.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 06:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-sas-compressed-dataset-from-a-teradata-table/m-p/453840#M283988</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-04-13T06:24:27Z</dc:date>
    </item>
  </channel>
</rss>

