<?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: Hi, could I reduce the time sas EG run the code in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248298#M17598</link>
    <description>PROC SURVEYSELECT might not be optimized to pull a random sample from a large database.  You might look at an SQL technique that allows you to push more of that work to the database.  Here's a paper that describes the technique:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www2.sas.com/proceedings/sugi31/168-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/168-31.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 05 Feb 2016 16:13:17 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2016-02-05T16:13:17Z</dc:date>
    <item>
      <title>Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248239#M17582</link>
      <description>&lt;P&gt;Hi, I tried to get just 10 observations sample from a large database server. but I had to wait 8 hours to get these 10 observations. Is there a quick way to get it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 14:22:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248239#M17582</guid>
      <dc:creator>bohonghong</dc:creator>
      <dc:date>2016-02-05T14:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248240#M17583</link>
      <description>&lt;P&gt;How large is your data? What is you DB? What code you used for that?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 14:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248240#M17583</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2016-02-05T14:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248243#M17585</link>
      <description>&lt;P&gt;Would need to know further information to help, DB used, code etc. &amp;nbsp;However, if you just want 10 observastions from a database, why not just go onto the database, runs some SQL and drop the results into a CSV. &amp;nbsp;Probably quickest option unless you are planning to do it regularly?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 14:29:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248243#M17585</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-02-05T14:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248244#M17586</link>
      <description>&lt;P&gt;I couldn't find how many observation on my server database, the ROW showing Unknown. and it is created like 1960.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 14:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248244#M17586</guid>
      <dc:creator>bohonghong</dc:creator>
      <dc:date>2016-02-05T14:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248245#M17587</link>
      <description>&lt;P&gt;This is about query performance, so EG is probably not the "problem". Are you using the Query Builder?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you say "large database server", can you be a bit&amp;nbsp;more specific? Vendor/version...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Share the code/log from your not so well&amp;nbsp;performing&amp;nbsp;query.&lt;/P&gt;
&lt;P&gt;Chances are that your subset criteria is not evaluated in the source database, so that all records are moved to SAS.&lt;/P&gt;
&lt;P&gt;Add&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options sastrace=',,,d' sastraceloc=saslog nostsuffix msglevel=i;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to your code, and your will get information in log on what is going on, and where.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may also depend on how the data base table is defined (lack of indexes, no/old index statistics, no/bad partitioning).&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 14:30:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248245#M17587</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-02-05T14:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248247#M17588</link>
      <description>I actually do not know the DB meaning, the code is PROC SURVEYSELECT DATA=ECLIB000.JAN2016()&lt;BR /&gt;OUT=WORK.RANDRandomSampleJAN2016&lt;BR /&gt;METHOD=SRS&lt;BR /&gt;N=10;</description>
      <pubDate>Fri, 05 Feb 2016 14:32:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248247#M17588</guid>
      <dc:creator>bohonghong</dc:creator>
      <dc:date>2016-02-05T14:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248249#M17589</link>
      <description>I see, I need to build a model from two small samples (merged later on) from 2 Master Server: SASApp data base. The observations from both data bases are Unknown.&lt;BR /&gt;&lt;BR /&gt;so when I run random sampling, it run more than 8 hours. I just thought why not just copy the table row and put on excel.</description>
      <pubDate>Fri, 05 Feb 2016 14:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248249#M17589</guid>
      <dc:creator>bohonghong</dc:creator>
      <dc:date>2016-02-05T14:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248250#M17590</link>
      <description>&lt;P&gt;Sorry, you have totally lost me there. &amp;nbsp;You said you were having problems getting data from a database (DB) server. &amp;nbsp;So I have responded with, why not go back to the database server and extract the data you want. &amp;nbsp;You have now posted something about a proc surveyselect, which is a SAS procedure? &amp;nbsp;Please clarify what you have problems with. &amp;nbsp;I would also check, do you extract the data to a SAS dataset first, or are you doing this surveyselct on libnames to a database? &amp;nbsp;Post your full code if possible.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 14:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248250#M17590</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-02-05T14:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248251#M17591</link>
      <description>&lt;P&gt;Well now. When I wanna check the log. It is blank and my SAS EG is now frozen, it won't&amp;nbsp;minimize and I had to use task manager to close it. Bummer&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 14:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248251#M17591</guid>
      <dc:creator>bohonghong</dc:creator>
      <dc:date>2016-02-05T14:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248256#M17592</link>
      <description>You know under the data tab when you open the table in EG. There is a Random Sample choice, right, and then you click run. This code submitted on the server database. but it took really long just for one database to get 10 observations.</description>
      <pubDate>Fri, 05 Feb 2016 14:46:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248256#M17592</guid>
      <dc:creator>bohonghong</dc:creator>
      <dc:date>2016-02-05T14:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248257#M17593</link>
      <description>It is a ramdon sample I need, because the database have duplicates. I cannot have 10 observation which came from one person from different year.</description>
      <pubDate>Fri, 05 Feb 2016 14:49:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248257#M17593</guid>
      <dc:creator>bohonghong</dc:creator>
      <dc:date>2016-02-05T14:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248258#M17594</link>
      <description>&lt;P&gt;SASApp is the "name" of your SAS server where your code executes.&lt;/P&gt;
&lt;P&gt;It's your library definition that tells you where your data is actually stored. Try:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname _all_ list;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to get information about your source data base.&lt;/P&gt;
&lt;P&gt;If it's non-SAS, you have two major options:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Move the data to SAS, then execute your sampling. A good option if you will do this frequently&lt;/LI&gt;
&lt;LI&gt;Take your sampling to the database, using SAS in-database technology. Requires a separate&amp;nbsp;license, and an investigation if your set of code can benefit from this.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If this is SAS&amp;nbsp;data, you definitely&amp;nbsp;need to look at the SAS server, physical data storage and CPU/memory&amp;nbsp;capacity.&lt;/P&gt;
&lt;P&gt;Add:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options fullstimer;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to better analyse your SAS code excution.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 14:50:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248258#M17594</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-02-05T14:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248263#M17595</link>
      <description>So how do I know if it is non-SAS? I got Libref= ODS&lt;BR /&gt;Scope= IOM ROOT COMP ENV&lt;BR /&gt;Engine= ORACLE&lt;BR /&gt;&lt;BR /&gt;Is it not sas?</description>
      <pubDate>Fri, 05 Feb 2016 14:57:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248263#M17595</guid>
      <dc:creator>bohonghong</dc:creator>
      <dc:date>2016-02-05T14:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248267#M17596</link>
      <description>&lt;P&gt;No, it's Oracle.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 15:08:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248267#M17596</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-02-05T15:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248272#M17597</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/68937"&gt;@bohonghong﻿&lt;/a&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please refer this document for speed up your processing;&lt;/P&gt;&lt;P&gt;Because too many parameters we have to check to speed up the processing;&lt;/P&gt;&lt;P&gt;this link will give you proper idea about PROC SURVEYSELECT and its options to speed up this procedure,&lt;/P&gt;&lt;P&gt;Link :&amp;nbsp;&lt;A href="http://www2.sas.com/proceedings/forum2007/183-2007.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2007/183-2007.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 15:19:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248272#M17597</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2016-02-05T15:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248298#M17598</link>
      <description>PROC SURVEYSELECT might not be optimized to pull a random sample from a large database.  You might look at an SQL technique that allows you to push more of that work to the database.  Here's a paper that describes the technique:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www2.sas.com/proceedings/sugi31/168-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/168-31.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Feb 2016 16:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248298#M17598</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-02-05T16:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, could I reduce the time sas EG run the code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248341#M17599</link>
      <description>Thanks for everyone's input, so fast wow! I felt so grateful for your time and dedication. Happy Friday.&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Feb 2016 17:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Hi-could-I-reduce-the-time-sas-EG-run-the-code/m-p/248341#M17599</guid>
      <dc:creator>bohonghong</dc:creator>
      <dc:date>2016-02-05T17:12:13Z</dc:date>
    </item>
  </channel>
</rss>

