<?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: parallelizing do loop in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/parallelizing-do-loop-in-SAS/m-p/852531#M336994</link>
    <description>&lt;P&gt;I am new in SAS, but I am used to code in Julia.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There exist a library called "Threads". Then, for example, if you have a for loop from 1 to 12 and your computer has 4 cores, these process divides the computation between them and then it merges the results and shows it as it were calculated one by one&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2023 16:28:17 GMT</pubDate>
    <dc:creator>Ramiro_iese</dc:creator>
    <dc:date>2023-01-06T16:28:17Z</dc:date>
    <item>
      <title>parallelizing do loop in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/parallelizing-do-loop-in-SAS/m-p/852509#M336983</link>
      <description>&lt;P&gt;Is it possible to run a %do loop (in a macro) ussing parallel processing?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 14:42:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/parallelizing-do-loop-in-SAS/m-p/852509#M336983</guid>
      <dc:creator>Ramiro_iese</dc:creator>
      <dc:date>2023-01-06T14:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: parallelizing do loop in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/parallelizing-do-loop-in-SAS/m-p/852524#M336989</link>
      <description>&lt;P&gt;This could well depend on what you mean by parallel processing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide a description or details of what you are wanting to do.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 16:07:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/parallelizing-do-loop-in-SAS/m-p/852524#M336989</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-01-06T16:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: parallelizing do loop in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/parallelizing-do-loop-in-SAS/m-p/852527#M336992</link>
      <description>&lt;P&gt;If you want to do a "parallel macro execution" in BASE SAS look up this tutorial:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://pages.mini.pw.edu.pl/~jablonskib/SASpublic/Parallel-processing-in-BASE-SAS.sas" target="_blank"&gt;https://pages.mini.pw.edu.pl/~jablonskib/SASpublic/Parallel-processing-in-BASE-SAS.sas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 16:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/parallelizing-do-loop-in-SAS/m-p/852527#M336992</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-01-06T16:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: parallelizing do loop in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/parallelizing-do-loop-in-SAS/m-p/852531#M336994</link>
      <description>&lt;P&gt;I am new in SAS, but I am used to code in Julia.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There exist a library called "Threads". Then, for example, if you have a for loop from 1 to 12 and your computer has 4 cores, these process divides the computation between them and then it merges the results and shows it as it were calculated one by one&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 16:28:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/parallelizing-do-loop-in-SAS/m-p/852531#M336994</guid>
      <dc:creator>Ramiro_iese</dc:creator>
      <dc:date>2023-01-06T16:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: parallelizing do loop in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/parallelizing-do-loop-in-SAS/m-p/852534#M336996</link>
      <description>&lt;P&gt;BASE SAS is single threaded (in general) with some exceptions (like sorting with Proc Sort or Proc DS2's threads). There is no dedicated library/package for parallel processing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have SAS Viya (with CAS engine) you can have "parallel" data step processing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 16:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/parallelizing-do-loop-in-SAS/m-p/852534#M336996</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-01-06T16:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: parallelizing do loop in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/parallelizing-do-loop-in-SAS/m-p/852574#M337009</link>
      <description>&lt;P&gt;Parallel processing in SAS usually means you run multiple SAS jobs at the same time, each in a separate SAS session. If you are running the same logic in each job, you need to split your input data so each SAS job does a different slice of data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically you only parallel process to speed up slow run times. There is no point in doing it if your run times are acceptable. For example, I have a parallelised job that took around 14 hours to run sequentially, but now takes less than 4 hours, split into 4 parallel jobs all running at the same time.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 21:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/parallelizing-do-loop-in-SAS/m-p/852574#M337009</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-01-06T21:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: parallelizing do loop in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/parallelizing-do-loop-in-SAS/m-p/853029#M337182</link>
      <description>&lt;P&gt;There's a concept called MP Connect (requires a SAS/CONNECT license).&lt;/P&gt;
&lt;P&gt;In short you can spawn several child SAS sessions from a master SAS session.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One benefit is you can relatively easily orchestrate this using SAS code (e.g. do%), so you don't have to rely on OS functionality.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/scalability/connect/mp.html" target="_blank"&gt;https://support.sas.com/rnd/scalability/connect/mp.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/connref/p1sszj6a6otsy2n1pnseg8vh98l8.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/connref/p1sszj6a6otsy2n1pnseg8vh98l8.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 10:27:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/parallelizing-do-loop-in-SAS/m-p/853029#M337182</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-01-10T10:27:42Z</dc:date>
    </item>
  </channel>
</rss>

