<?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: run several programs in parallel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206615#M38394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please state your operating system&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2015 18:54:36 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2015-04-29T18:54:36Z</dc:date>
    <item>
      <title>run several programs in parallel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206609#M38388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="almost_half_cell" id="gt-res-content"&gt;Hi and sorry if my english isn't good enought,&lt;/P&gt;&lt;P class="almost_half_cell"&gt;I have 8 sas programs how takes 9 to 11 hours for each one (manipulate oracle database), so i have to run all this programs in parallel to optimize time.&lt;/P&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;So what should i do ?&lt;/P&gt;&lt;P&gt;(im working in SAS EG 4.3)&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 15:27:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206609#M38388</guid>
      <dc:creator>fadel</dc:creator>
      <dc:date>2015-04-29T15:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: run several programs in parallel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206610#M38389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some tips:&lt;/P&gt;&lt;P&gt;1) Do your database admin on the database, it will be quicker and safer.&lt;/P&gt;&lt;P&gt;2) Optimise your process&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I doubt you will be able to parallel run them.&amp;nbsp; The reason being, whilst you may be able to get mutiple SAS sessions going, the database will slow it down, imagine if one program is changing a table and so is another, concurrency becomes an issue.&amp;nbsp; What are you doing that takes 9-11 hours each one?&amp;nbsp; Re-assess your process, optimise things etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 15:38:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206610#M38389</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-04-29T15:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: run several programs in parallel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206611#M38390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried to execute programs in multiple sas sessions and it works very good, but i should to launch every one manually. Now i want to automate that: like launch a macro or something that run programs in parallel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 16:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206611#M38390</guid>
      <dc:creator>fadel</dc:creator>
      <dc:date>2015-04-29T16:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: run several programs in parallel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206612#M38391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are fooling yourself if you think that your computer will do the work faster performing several tasks in several SAS windows in parallel, compared to sequential. There is only so much your CPU can do in any period of time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set up batch jobs, depending on your operating system, that can start multiple SAS sessions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 16:52:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206612#M38391</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-04-29T16:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: run several programs in parallel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206613#M38392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS EG is installed on enterprise server, its better in performene then my laptop of course !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 17:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206613#M38392</guid>
      <dc:creator>fadel</dc:creator>
      <dc:date>2015-04-29T17:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: run several programs in parallel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206614#M38393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please, How can i create such a batch job (if you have any example)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 17:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206614#M38393</guid>
      <dc:creator>fadel</dc:creator>
      <dc:date>2015-04-29T17:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: run several programs in parallel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206615#M38394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please state your operating system&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 18:54:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206615#M38394</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-04-29T18:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: run several programs in parallel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206616#M38395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;8 hours for one Oracle job? There must be something wrong in your logical approach and coding. &lt;/P&gt;&lt;P&gt;No matter how fast hardware will be it is never unlimited. As a result it is always possible to code that badly it will last unacceptable long.&lt;/P&gt;&lt;P&gt;The bad thing with that is running in parallel will make all that even worse as being a thrashing effect. A serial process will be faster than parallel preventing the overload.&lt;BR /&gt;Go for the effort on reviewing and optimizing the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2015 19:14:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206616#M38395</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-04-29T19:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: run several programs in parallel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206617#M38396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, have your DBA people look at your Oracle pass-through SQL and check for optimizations. 9-11 hours for a job on Oracle is extreme. Or did you not use SQL pass-through? That would slow any operation down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, parallelizing jobs that use the same infrastructure (in this case, your database) is usually counterproductive; 8 1-hour jobs will consume 10+ hours when run in parallel. One of the duties of datacenter people is the clever schedulung of jobs to avoid this effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you already run 2 of those jobs concurrently from 2 EG sessions and timed the outcome?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 05:45:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206617#M38396</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-04-30T05:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: run several programs in parallel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206618#M38397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;for more&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;explanation: My DBA gives me that code to execute in sas:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;P&gt;%Include "/SAS92/data/segchurn/sas2/autoexec_dev.sas" ;&lt;/P&gt;&lt;P&gt;Proc Sql ;&lt;/P&gt;&lt;P&gt;Connect To Oracle (User = &amp;amp;UserOracle Pass = &amp;amp;PassOracle Path = &amp;amp;PathOracle) ;&lt;/P&gt;&lt;P&gt;execute (drop table bi_prod.tbl_act_sas) by oracle ;&lt;/P&gt;&lt;P&gt;execute (create table bi_prod.tbl_act_sas as&lt;/P&gt;&lt;P&gt;select cod_linea , fecha_alta&amp;nbsp; from DW_D_LINEA , bi_prod.param_date_act a where&amp;nbsp;&amp;nbsp;&amp;nbsp; cod_sistema='2'&lt;/P&gt;&lt;P&gt;and flag_reutilizado= 0 and fecha_alta &amp;gt;= dd and fecha_alta &amp;lt;df+1 ) By oracle ;&lt;/P&gt;&lt;P&gt;execute(truncate table bi_prod.tbl_rec_sas ) by oracle ;&lt;/P&gt;&lt;P&gt;execute (insert into bi_prod.tbl_rec_sas (select SUM(DW_F_RECARGAS.IMPORTE_RECARGA) mnt_recharge,cod_linea from dw_f_recargas ,&lt;/P&gt;&lt;P&gt;DW_D_ORIGEN_RECARGA,bi_prod.param_date_analyse a where DW_D_ORIGEN_RECARGA.ID_ORIGEN_RECARGA=DW_F_RECARGAS.ID_ORIGEN_RECARGA AND dw_f_recargas.cod_sistema='2' and DW_D_ORIGEN_RECARGA.DES_ORIGEN_RECARGA&amp;nbsp; IN&amp;nbsp; ('Call Center', 'BTU', 'IN', 'ETU', 'E-payment') and cod_linea in (select cod_linea&amp;nbsp; from&amp;nbsp; bi_prod.tbl_act_sas) and id_dia &amp;gt;= dd and id_dia&amp;nbsp; &amp;lt;df+1 group by cod_linea) ) by oracle ;&lt;/P&gt;&lt;P&gt;execute(commit) by oracle;&lt;/P&gt;&lt;P&gt;execute (truncate table&amp;nbsp; bi_prod.tbl_out_sas) by oracle ;&lt;/P&gt;&lt;P&gt;execute (insert into&amp;nbsp;&amp;nbsp; bi_prod.tbl_out_sas (&lt;/P&gt;&lt;P&gt;select SUM(dw_f_prepago.importe) mnt_out,telefono_origen from&lt;/P&gt;&lt;P&gt;dw_f_prepago ,bi_prod.param_date_analyse a&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;telefono_origen in (select cod_linea&amp;nbsp; from&amp;nbsp; bi_prod.tbl_act_sas) and&lt;/P&gt;&lt;P&gt;id_dia &amp;gt;= dd and id_dia&amp;nbsp; &amp;lt;df+1&lt;/P&gt;&lt;P&gt;group by telefono_origen ) ) by oracle ;&lt;/P&gt;&lt;P&gt;execute(commit) by oracle ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;execute (truncate table&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas) by oracle ;&lt;/P&gt;&lt;P&gt;execute (insert into&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;select SUM(volume_up+volume_down) vol,num_linea from&lt;/P&gt;&lt;P&gt;dw_f_navigation ,bi_prod.param_date_analyse a&lt;/P&gt;&lt;P&gt;where cod_sistema='2' and num_linea&amp;nbsp; in (select cod_linea&amp;nbsp; from&amp;nbsp; bi_prod.tbl_act_sas) and&lt;/P&gt;&lt;P&gt;id_dia &amp;gt;= dd and id_dia&amp;nbsp; &amp;lt;df+1&lt;/P&gt;&lt;P&gt;group by num_linea )&amp;nbsp; by oracle ;&lt;/P&gt;&lt;P&gt;execute(commit) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;execute (truncate table&amp;nbsp;&amp;nbsp; bi_prod.tbl_inter_sas) by oracle ;&lt;/P&gt;&lt;P&gt;execute ( insert into&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bi_prod.tbl_inter_sas&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;select SUM(ingresos) mou_in,telefono_destino from&lt;/P&gt;&lt;P&gt;dw_f_interconexion ,bi_prod.param_date_analyse a&lt;/P&gt;&lt;P&gt;where cod_sistema='2' and telefono_destino&amp;nbsp; in (select cod_linea&amp;nbsp; from&amp;nbsp; bi_prod.tbl_act_sas) and&lt;/P&gt;&lt;P&gt;id_dia &amp;gt;= dd and id_dia&amp;nbsp; &amp;lt;df+1&lt;/P&gt;&lt;P&gt;group by telefono_destino ) ) by oracle ;&lt;/P&gt;&lt;P&gt;execute(commit) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Table sasuser.analyse_identif As&lt;/P&gt;&lt;P&gt;Select *&lt;/P&gt;&lt;P&gt;From Connection To Oracle&lt;/P&gt;&lt;P&gt;(&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;select&amp;nbsp; a.cod_linea , a.fecha_alta date_act ,b.vol ,c.mou_in,d.mnt_out mou_out,e.mnt_recharge&amp;nbsp; from &lt;/P&gt;&lt;P&gt;&amp;nbsp; bi_prod.tbl_act_sas a left outer join&amp;nbsp; bi_prod.tbl_nav_sas b on a.cod_linea = b.num_linea &lt;/P&gt;&lt;P&gt;&amp;nbsp; left outer join&amp;nbsp; bi_prod.tbl_inter_sas c on a.cod_linea = c.telefono_destino&lt;/P&gt;&lt;P&gt;&amp;nbsp; left outer join bi_prod.tbl_out_sas d on a.cod_linea = d.telefono_origen &lt;/P&gt;&lt;P&gt;left outer join bi_prod.tbl_rec_sas&amp;nbsp; e on a.cod_linea = e.cod_linea &lt;/P&gt;&lt;P&gt;) ;&lt;/P&gt;&lt;P&gt;Disconnect From Oracle ;&lt;/P&gt;&lt;P&gt;Quit ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it takes a lot (2 days and it does not finish) so tried to optomize it, the idea was to segment the code and run those of same step in parallel and it wored. Now i want to automate that. this my new code:&lt;/P&gt;&lt;P&gt;/* création des tables 1,..,4 */&lt;/P&gt;&lt;P&gt;execute (create table&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas_1 as select * from bi_prod.tbl_nav_sas) by oracle;&lt;/P&gt;&lt;P&gt;execute (create table&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas_2 as select * from bi_prod.tbl_nav_sas) by oracle;&lt;/P&gt;&lt;P&gt;execute (create table&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas_3 as select * from bi_prod.tbl_nav_sas) by oracle;&lt;/P&gt;&lt;P&gt;execute (create table&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas_4 as select * from bi_prod.tbl_nav_sas) by oracle;&lt;/P&gt;&lt;P&gt;execute (create table&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas_join_1 as select * from bi_prod.tbl_nav_sas) by oracle;&lt;/P&gt;&lt;P&gt;execute (create table&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas_join_2 as select * from bi_prod.tbl_nav_sas) by oracle;&lt;/P&gt;&lt;P&gt;/* 1 */&lt;/P&gt;&lt;P&gt;execute (truncate table&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas_1) by oracle ;&lt;/P&gt;&lt;P&gt;execute (insert into&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas_1&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;select SUM(volume_up+volume_down) vol, num_linea from&lt;/P&gt;&lt;P&gt;dw_f_navigation ,bi_prod.param_date_analyse a&lt;/P&gt;&lt;P&gt;where cod_sistema='2'&lt;/P&gt;&lt;P&gt;group by num_linea ))&amp;nbsp; by oracle ;&lt;/P&gt;&lt;P&gt;execute(commit) by oracle;&lt;/P&gt;&lt;P&gt;/* 2 */&lt;/P&gt;&lt;P&gt;execute (truncate table&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas_2) by oracle ;&lt;/P&gt;&lt;P&gt;execute (insert into&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas_2&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;select SUM(volume_up+volume_down) vol, num_linea from&lt;/P&gt;&lt;P&gt;dw_f_navigation ,bi_prod.param_date_analyse a&lt;/P&gt;&lt;P&gt;where num_linea&amp;nbsp; in (select cod_linea&amp;nbsp; from&amp;nbsp; bi_prod.tbl_act_sas)&lt;/P&gt;&lt;P&gt;group by num_linea ))&amp;nbsp; by oracle ;&lt;/P&gt;&lt;P&gt;execute(commit) by oracle;&lt;/P&gt;&lt;P&gt;/* 3 */&lt;/P&gt;&lt;P&gt;execute (truncate table&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas_3) by oracle ;&lt;/P&gt;&lt;P&gt;execute (insert into&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas_3&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;select SUM(volume_up+volume_down) vol, num_linea from&lt;/P&gt;&lt;P&gt;dw_f_navigation ,bi_prod.param_date_analyse a&lt;/P&gt;&lt;P&gt;where id_dia &amp;gt;= dd&lt;/P&gt;&lt;P&gt;group by num_linea ))&amp;nbsp; by oracle ;&lt;/P&gt;&lt;P&gt;execute(commit) by oracle;&lt;/P&gt;&lt;P&gt;/* 4 */&lt;/P&gt;&lt;P&gt;execute (truncate table&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas_4) by oracle ;&lt;/P&gt;&lt;P&gt;execute (insert into&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas_4&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;select SUM(volume_up+volume_down) vol, num_linea from&lt;/P&gt;&lt;P&gt;dw_f_navigation ,bi_prod.param_date_analyse a&lt;/P&gt;&lt;P&gt;where id_dia&amp;nbsp; &amp;lt;df+1&lt;/P&gt;&lt;P&gt;group by num_linea ))&amp;nbsp; by oracle ;&lt;/P&gt;&lt;P&gt;execute(commit) by oracle;&lt;/P&gt;&lt;P&gt;/* jointure */&lt;/P&gt;&lt;P&gt;/* 1 */&lt;/P&gt;&lt;P&gt;execute (truncate table bi_prod.tbl_nav_sas_join_1) by oracle ;&lt;/P&gt;&lt;P&gt;execute(insert into bi_prod.tbl_nav_sas_join_1 (SELECT *&lt;/P&gt;&lt;P&gt;FROM bi_prod.tbl_nav_sas_1 INNER JOIN bi_prod.tbl_nav_sas_2&lt;/P&gt;&lt;P&gt;ON bi_prod.tbl_nav_sas_1.num_linea = bi_prod.tbl_nav_sas_2.num_linea)) by oracle;&lt;/P&gt;&lt;P&gt;execute(commit) by oracle;&lt;/P&gt;&lt;P&gt;/* 2 */&lt;/P&gt;&lt;P&gt;execute (truncate table bi_prod.tbl_nav_sas_join_2) by oracle ;&lt;/P&gt;&lt;P&gt;execute(insert into bi_prod.tbl_nav_sas_join_2 (SELECT *&lt;/P&gt;&lt;P&gt;FROM bi_prod.tbl_nav_sas_3 INNER JOIN bi_prod.tbl_nav_sas_4&lt;/P&gt;&lt;P&gt;ON bi_prod.tbl_nav_sas_3.num_linea = bi_prod.tbl_nav_sas_4.num_linea)) by oracle;&lt;/P&gt;&lt;P&gt;execute(commit) by oracle;&lt;/P&gt;&lt;P&gt;/* finale */&lt;/P&gt;&lt;P&gt;execute (truncate table&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas) by oracle ;&lt;/P&gt;&lt;P&gt;execute (insert into&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bi_prod.tbl_nav_sas&amp;nbsp;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;select * from bi_prod.tbl_nav_sas_join_1 inner join bi_prod.tbl_nav_sas_join_2&lt;/P&gt;&lt;P&gt;on bi_prod.tbl_nav_sas_join_1.num_linea = bi_prod.tbl_nav_sas_join_1.num_linea)&lt;/P&gt;&lt;P&gt;group by num_linea )&amp;nbsp; by oracle ;&lt;/P&gt;&lt;P&gt;execute(commit) by oracle;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i can execute my task in 12&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt; hours&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;earlier.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 07:42:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206618#M38397</guid>
      <dc:creator>fadel</dc:creator>
      <dc:date>2015-04-30T07:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: run several programs in parallel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206619#M38398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like your DB people are trying to wipe their hands of the matter.&amp;nbsp; For example, why is the above deleting tables, adn then recreating them each time you startup?&amp;nbsp; Why do they not create views (which are bits of code rather than the data), thus you pass in your query to get the data, the view then executes to get the data together and sends back to you.&amp;nbsp; All processing done on the DB server for speed and effieciency.&amp;nbsp; The table doesn't need to be removed/created and so is reponsive to changes on the DB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 08:39:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206619#M38398</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-04-30T08:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: run several programs in parallel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206620#M38399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really don't know about the efficiency of inserts in Oracle, but I would at least try to unload the selects into SAS tables and create the results in SAS using SAS methods, just to test the relative efficiency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know from experience with DB/2 that SAS on much "weaker" servers can run circles around (even mainframe) DB systems in certain cases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 09:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206620#M38399</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-04-30T09:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: run several programs in parallel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206621#M38400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You got the code form your DBA, please review the SAS documentation that is intended&amp;nbsp; to have DBA Oracle knowledge. &lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/67589/HTML/default/viewer.htm#n05b4mygsvt845n1vnr6r5kchbjf.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/67589/HTML/default/viewer.htm#n05b4mygsvt845n1vnr6r5kchbjf.htm"&gt;SAS/ACCESS(R) 9.4 for Relational Databases: Reference, Sixth Edition&lt;/A&gt; This one starts with a bufzise to think about is 250 records good, or is it too small and needing more.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/67589/HTML/default/viewer.htm#p0fmgbpjwgbnvkn1sysefnr22fow.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/67589/HTML/default/viewer.htm#p0fmgbpjwgbnvkn1sysefnr22fow.htm"&gt;SAS/ACCESS(R) 9.4 for Relational Databases: Reference, Sixth Edition&lt;/A&gt; Is about insertbuf updatebuff readbuff.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/67589/HTML/default/viewer.htm#p0ewb0agff5a1vn1mq7lox50dtwh.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/67589/HTML/default/viewer.htm#p0ewb0agff5a1vn1mq7lox50dtwh.htm"&gt;SAS/ACCESS(R) 9.4 for Relational Databases: Reference, Sixth Edition&lt;/A&gt; bulk loading is the SQL-loader&amp;nbsp;&amp;nbsp; look at dbsliceparms and more (parallel inside Oracle)&lt;BR /&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings13/072-2013.pdf" title="http://support.sas.com/resources/papers/proceedings13/072-2013.pdf"&gt;http://support.sas.com/resources/papers/proceedings13/072-2013.pdf&lt;/A&gt;&amp;nbsp;&amp;nbsp; Id did not see any of these performance options in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The option to unload a database process it in smart in SAS and reload can be faster as being optimized and tuned for serial batch processing. &lt;BR /&gt;The nature of random IO intermediate tables logging en journaling with all commits of an OLTP are adding that much overhead, resulting in a very slow processing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 20:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206621#M38400</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-04-30T20:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: run several programs in parallel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206622#M38401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Karman, i tried to unload datasets in SAS, it takes less time than the first.&lt;/P&gt;&lt;P&gt;Thanks every body.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 10:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/run-several-programs-in-parallel/m-p/206622#M38401</guid>
      <dc:creator>fadel</dc:creator>
      <dc:date>2015-05-06T10:51:06Z</dc:date>
    </item>
  </channel>
</rss>

