<?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: Share SAS work tables across nested jobs in DI Studio in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Share-SAS-work-tables-across-nested-jobs-in-DI-Studio/m-p/609696#M17954</link>
    <description>&lt;P&gt;Jobs B and C are nested within A so as far as I can see from the generated code they are all one SAS instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I've found a way to do it.&lt;/P&gt;&lt;P&gt;In job A create the work data set as usual.&lt;/P&gt;&lt;P&gt;In job B create a User Written Code node that has no code but has an output work data set. Manually give it the same name and variables as the work data set created in A. It will then work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the attached package to see for yourself. Run job A and check the Output window.&lt;/P&gt;&lt;P&gt;Please let me know if you have any better ideas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2019 15:05:44 GMT</pubDate>
    <dc:creator>lethcons</dc:creator>
    <dc:date>2019-12-05T15:05:44Z</dc:date>
    <item>
      <title>Share SAS work tables across nested jobs in DI Studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Share-SAS-work-tables-across-nested-jobs-in-DI-Studio/m-p/609667#M17939</link>
      <description>&lt;P&gt;I have DI Studio job A. Within it it calls job B and then job C. Is there any way I can share work tables and reference them as input/output tables in my jobs? Currently all I can think of is to write them to permanent data sets in permanent libraries that are registered in metadata. For various reasons this is far from ideal.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 12:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Share-SAS-work-tables-across-nested-jobs-in-DI-Studio/m-p/609667#M17939</guid>
      <dc:creator>lethcons</dc:creator>
      <dc:date>2019-12-05T12:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Share SAS work tables across nested jobs in DI Studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Share-SAS-work-tables-across-nested-jobs-in-DI-Studio/m-p/609682#M17948</link>
      <description>&lt;P&gt;Per definition, WORK is always "private" to a given SAS instance, and exists only while the instance is active. If you need program B to have the same WORK context as program A, you need to %include it in A.&lt;/P&gt;
&lt;P&gt;From what I know about DI, each job will run in a separate BatchServer session, so you have to use permanent libraries to hand data over from one job to another.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 13:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Share-SAS-work-tables-across-nested-jobs-in-DI-Studio/m-p/609682#M17948</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-05T13:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Share SAS work tables across nested jobs in DI Studio</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Share-SAS-work-tables-across-nested-jobs-in-DI-Studio/m-p/609696#M17954</link>
      <description>&lt;P&gt;Jobs B and C are nested within A so as far as I can see from the generated code they are all one SAS instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I've found a way to do it.&lt;/P&gt;&lt;P&gt;In job A create the work data set as usual.&lt;/P&gt;&lt;P&gt;In job B create a User Written Code node that has no code but has an output work data set. Manually give it the same name and variables as the work data set created in A. It will then work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the attached package to see for yourself. Run job A and check the Output window.&lt;/P&gt;&lt;P&gt;Please let me know if you have any better ideas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 15:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Share-SAS-work-tables-across-nested-jobs-in-DI-Studio/m-p/609696#M17954</guid>
      <dc:creator>lethcons</dc:creator>
      <dc:date>2019-12-05T15:05:44Z</dc:date>
    </item>
  </channel>
</rss>

