<?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: Parallel Processing with Macros in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Parallel-Processing-with-Macros/m-p/430515#M27782</link>
    <description>&lt;P&gt;I'm assuming you do have some library space on the server? If so,&amp;nbsp;can you compile the macro once and store it in the library?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=hosto390&amp;amp;docsetTarget=n0wlgcradj9wzzn115uk2rkw0xnd.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=hosto390&amp;amp;docsetTarget=n0wlgcradj9wzzn115uk2rkw0xnd.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2018 16:03:31 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-01-24T16:03:31Z</dc:date>
    <item>
      <title>Parallel Processing with Macros</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Parallel-Processing-with-Macros/m-p/430338#M27748</link>
      <description>&lt;P&gt;Hello, I'm trying to call a macro in EG with Parallel processing enabled.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The macro&amp;nbsp;is defined in one program that is then linked to multiple others which all call it. However it will only get called the first time and then is dropped from memory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I&amp;nbsp;remove the macro definition program and instead place&amp;nbsp;a copy&amp;nbsp;in the call scripts they all run in parallel.&amp;nbsp;However I only want to define the macro once, so any changes aren't made multiple times.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I define a macro across multiple&amp;nbsp;parallel processes&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 10:27:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Parallel-Processing-with-Macros/m-p/430338#M27748</guid>
      <dc:creator>Rhys</dc:creator>
      <dc:date>2018-01-24T10:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing with Macros</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Parallel-Processing-with-Macros/m-p/430347#M27751</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/121229"&gt;@Rhys&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not the most expert here, so if I cannot help you, please wait a bit, there will be more colleagues willing to help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For me, as former java programmer, the answer would be simple, in a way. As you said, the problem is the multiple definition of the macro, but you can call it many times.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can split your program on one, just to be executed once, where you can include the macro definition, and then the other, or other programs, to be executed recursively with parallel processing enabled, where you will be calling the macro as many times as needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option, mostly generalised, is to have a location only with macro code, and include its location on your sasv9_usermodes in the Workspace Server. See SASAUTOS option (between others) in here:&amp;nbsp;&lt;A href="http://documentation.sas.com/?docsetId=allprodslang&amp;amp;docsetTarget=syntaxByCategory-macroSystemOptions.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=allprodslang&amp;amp;docsetTarget=syntaxByCategory-macroSystemOptions.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this latest option, you won't need to define the macro again, every time you start an EG session, you will have the macro available for you.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 11:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Parallel-Processing-with-Macros/m-p/430347#M27751</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2018-01-24T11:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing with Macros</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Parallel-Processing-with-Macros/m-p/430351#M27754</link>
      <description>&lt;P&gt;Thanks for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking of using %include however, the server is on Linux and the client is Windows so it's not easy to get a script into an area that is readable by the server.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 11:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Parallel-Processing-with-Macros/m-p/430351#M27754</guid>
      <dc:creator>Rhys</dc:creator>
      <dc:date>2018-01-24T11:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing with Macros</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Parallel-Processing-with-Macros/m-p/430515#M27782</link>
      <description>&lt;P&gt;I'm assuming you do have some library space on the server? If so,&amp;nbsp;can you compile the macro once and store it in the library?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=hosto390&amp;amp;docsetTarget=n0wlgcradj9wzzn115uk2rkw0xnd.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=hosto390&amp;amp;docsetTarget=n0wlgcradj9wzzn115uk2rkw0xnd.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 16:03:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Parallel-Processing-with-Macros/m-p/430515#M27782</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-24T16:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing with Macros</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Parallel-Processing-with-Macros/m-p/430644#M27799</link>
      <description>&lt;P&gt;You could turn your macro into an AUTOCALL one so it is available to all SAS sessions and can be called by any.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 20:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Parallel-Processing-with-Macros/m-p/430644#M27799</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-01-24T20:04:17Z</dc:date>
    </item>
  </channel>
</rss>

