<?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 and variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Parallel-processing-and-variables/m-p/578911#M164272</link>
    <description>&lt;P&gt;Thanks!&amp;nbsp; I'll look into that&lt;/P&gt;</description>
    <pubDate>Sat, 03 Aug 2019 14:39:27 GMT</pubDate>
    <dc:creator>JeffM</dc:creator>
    <dc:date>2019-08-03T14:39:27Z</dc:date>
    <item>
      <title>Parallel processing and variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parallel-processing-and-variables/m-p/578901#M164265</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have setup a process that parallel processes 8 programs to pull a lot of data. However, I have to maintain all of the variables in each one going forward (this is a monthly thing).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to create 1 master program with all of the variables and share them across programs when running? I understand each program uses its own instance of SAS so I am thinking no.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2019 12:58:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parallel-processing-and-variables/m-p/578901#M164265</guid>
      <dc:creator>JeffM</dc:creator>
      <dc:date>2019-08-03T12:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing and variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parallel-processing-and-variables/m-p/578910#M164271</link>
      <description>&lt;P&gt;Save the variable names in a permanent SAS data set.&amp;nbsp; It should be quick and easy for each program to extract the list of variable names, and it makes for easy maintenance if you decide to add a variable name to the list.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2019 14:34:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parallel-processing-and-variables/m-p/578910#M164271</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-08-03T14:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing and variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parallel-processing-and-variables/m-p/578911#M164272</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp; I'll look into that&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2019 14:39:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parallel-processing-and-variables/m-p/578911#M164272</guid>
      <dc:creator>JeffM</dc:creator>
      <dc:date>2019-08-03T14:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel processing and variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Parallel-processing-and-variables/m-p/579637#M164548</link>
      <description>&lt;P&gt;The&amp;nbsp;SAS guru at my company&amp;nbsp;finally got back to me with the hookup!&amp;nbsp; She said to use an "environment" node to handle everything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the environment program:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options presenv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename env "filepath"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lib statements&lt;/P&gt;&lt;P&gt;Let statements&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc presenv permdir=mylib (assuming you created this earlier) sascode=env;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In each subsequent node you just need to put:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename myenv "filepath for env file above";&lt;/P&gt;&lt;P&gt;%include myenv;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the filename in the child nodes need to be different than the master one (myenv vs env)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 11:58:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Parallel-processing-and-variables/m-p/579637#M164548</guid>
      <dc:creator>JeffM</dc:creator>
      <dc:date>2019-08-07T11:58:06Z</dc:date>
    </item>
  </channel>
</rss>

