<?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: Quick Export sas dataset into .txt for a big dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Quick-Export-sas-dataset-into-txt-for-a-big-dataset/m-p/319067#M69988</link>
    <description>&lt;P&gt;Run it with options fullstimer. If real time is considerably longer than CPU time, you are I/O bound and need to work on storage throughput.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2016 22:24:38 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-12-14T22:24:38Z</dc:date>
    <item>
      <title>Quick Export sas dataset into .txt for a big dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quick-Export-sas-dataset-into-txt-for-a-big-dataset/m-p/319062#M69985</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
&lt;P&gt;I have used the solution&amp;nbsp; below given from the esteemed advisor Tom, it works well, but I have a matter with a big data, the exporting take more than 15 minutes for 3000,000 observations, I would like to have less than 2 minutes, is it possible ?&lt;/P&gt;
&lt;P&gt;Thank to &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/38862"&gt;@ll&lt;/a&gt; other members&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Exporting-a-sas-data-set-into-txt/m-p/314405#M68468" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Exporting-a-sas-data-set-into-txt/m-p/314405#M68468&lt;/A&gt;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; _null_&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token statement"&gt;file&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;log&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token keyword"&gt;set&lt;/SPAN&gt; test&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;obs&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; test&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;length&lt;/SPAN&gt; __name &lt;SPAN class="token punctuation"&gt;$&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;32&lt;/SPAN&gt; __length &lt;SPAN class="token number"&gt;8&lt;/SPAN&gt; __value &lt;SPAN class="token punctuation"&gt;$&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;200&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  do while &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
    call &lt;SPAN class="token function"&gt;vnext&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;__name&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;lowcase&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;__name&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'__name'&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;then&lt;/SPAN&gt; leave&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt; _n_&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;then&lt;/SPAN&gt; __value &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; __name &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token keyword"&gt;else&lt;/SPAN&gt; __value &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;quote&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;strip&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;vvaluex&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;__name&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
    __length&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;lengthn&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;__value&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
    &lt;SPAN class="token keyword"&gt;put&lt;/SPAN&gt; __value &lt;SPAN class="token punctuation"&gt;$&lt;/SPAN&gt;varying200&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt; __length &lt;SPAN class="token string"&gt;';'&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;@&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  end&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token keyword"&gt;put&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 21:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quick-Export-sas-dataset-into-txt-for-a-big-dataset/m-p/319062#M69985</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2016-12-14T21:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Export sas dataset into .txt for a big dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quick-Export-sas-dataset-into-txt-for-a-big-dataset/m-p/319067#M69988</link>
      <description>&lt;P&gt;Run it with options fullstimer. If real time is considerably longer than CPU time, you are I/O bound and need to work on storage throughput.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 22:24:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quick-Export-sas-dataset-into-txt-for-a-big-dataset/m-p/319067#M69988</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-14T22:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Export sas dataset into .txt for a big dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quick-Export-sas-dataset-into-txt-for-a-big-dataset/m-p/319182#M70028</link>
      <description>&lt;P&gt;You should not use VVALUEX(). PUT these variable names directly .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;put x1 x2 .........;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 07:33:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quick-Export-sas-dataset-into-txt-for-a-big-dataset/m-p/319182#M70028</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-12-15T07:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Export sas dataset into .txt for a big dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quick-Export-sas-dataset-into-txt-for-a-big-dataset/m-p/319899#M70372</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;: thank you&lt;/P&gt;
&lt;P&gt;put x1 x2 .........;&lt;/P&gt;
&lt;P&gt;put the variables names do not reply to my need because the name can change from x1 x2...toto&amp;nbsp; Wi or Yi ...so on&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 13:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quick-Export-sas-dataset-into-txt-for-a-big-dataset/m-p/319899#M70372</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2016-12-19T13:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Export sas dataset into .txt for a big dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quick-Export-sas-dataset-into-txt-for-a-big-dataset/m-p/319904#M70373</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; : thank you&lt;/P&gt;
&lt;P&gt;The real time still higher ? I am still open for the optimization of&amp;nbsp; the time&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 13:07:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quick-Export-sas-dataset-into-txt-for-a-big-dataset/m-p/319904#M70373</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2016-12-19T13:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Export sas dataset into .txt for a big dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quick-Export-sas-dataset-into-txt-for-a-big-dataset/m-p/319910#M70374</link>
      <description>&lt;P&gt;If real time exceeds CPU time significantly (not just a few percent), you either&lt;/P&gt;
&lt;P&gt;- have to share CPU power with other processes. Run the necessary system tools (Task Manager on Windows, nmon or topas on UNIX) to determine the processes competing for CPU.&lt;/P&gt;
&lt;P&gt;- run into I/O bottlenecks&lt;/P&gt;
&lt;P&gt;Possible avenues for I/O tuning:&lt;/P&gt;
&lt;P&gt;- separate disks that are being read from those that are being written (keep source and target libraries on physically separate disks)&lt;/P&gt;
&lt;P&gt;- set up disk arrays, so that more than one disk handles a certain I/O load; this is called striping&lt;/P&gt;
&lt;P&gt;- migrate to SSDs&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 13:16:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quick-Export-sas-dataset-into-txt-for-a-big-dataset/m-p/319910#M70374</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-19T13:16:38Z</dc:date>
    </item>
  </channel>
</rss>

