<?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 How to access datasets in the  server in-memory work library from rsubmit subtasks? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/495308#M72342</link>
    <description>&lt;P&gt;Hello&amp;nbsp;everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to learn parallel programming following this article :&lt;BR /&gt;&lt;A href="https://www.mwsug.org/proceedings/2013/BI/MWSUG-2013-BI07.pdf" target="_blank"&gt;https://www.mwsug.org/proceedings/2013/BI/MWSUG-2013-BI07.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to assign the client library to the same location as my server work library so that I can access the files in the server work library&amp;nbsp;in every subtasks.&amp;nbsp;&lt;BR /&gt;The problem is that although&amp;nbsp;%sysfunc(pathname(work)) reports&amp;nbsp;the path of the work library, (C:\Users\Admins\AppData\Local\Temp\SAS Temporary Files\_TD6236_ADMIN-1070205A_), my datasets in the work library is not actually there since I use the in-memory&amp;nbsp;work library (MEMLIB).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could you please help me find the&amp;nbsp;location of my in-memory work library? Or is there any other suggestion for my problem? Thank you very much.&lt;BR /&gt;&lt;BR /&gt;Yun&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;libname shared "%sysfunc(pathname(work))";&lt;BR /&gt;&lt;BR /&gt;data pt; /*generate sample dataset*/&lt;BR /&gt;do pt=1 to &amp;amp;numPt;&lt;BR /&gt;gender = ifc(uniform(&amp;amp;seed) &amp;gt; .45, 'M', 'F');&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;

rsubmit task1 wait=no inheritlib=(shared); /*use inheritlib to set shared to the server work library*/&lt;BR /&gt;data shared.task1;&lt;BR /&gt;set shared.pt;  /* &amp;lt;--   ERROR: File SHARED.PT.DATA does not exist. */&lt;BR /&gt;run;&lt;BR /&gt;endrsubmit;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2018 14:32:25 GMT</pubDate>
    <dc:creator>myun1</dc:creator>
    <dc:date>2018-09-13T14:32:25Z</dc:date>
    <item>
      <title>How to access datasets in the  server in-memory work library from rsubmit subtasks?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/495308#M72342</link>
      <description>&lt;P&gt;Hello&amp;nbsp;everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to learn parallel programming following this article :&lt;BR /&gt;&lt;A href="https://www.mwsug.org/proceedings/2013/BI/MWSUG-2013-BI07.pdf" target="_blank"&gt;https://www.mwsug.org/proceedings/2013/BI/MWSUG-2013-BI07.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to assign the client library to the same location as my server work library so that I can access the files in the server work library&amp;nbsp;in every subtasks.&amp;nbsp;&lt;BR /&gt;The problem is that although&amp;nbsp;%sysfunc(pathname(work)) reports&amp;nbsp;the path of the work library, (C:\Users\Admins\AppData\Local\Temp\SAS Temporary Files\_TD6236_ADMIN-1070205A_), my datasets in the work library is not actually there since I use the in-memory&amp;nbsp;work library (MEMLIB).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could you please help me find the&amp;nbsp;location of my in-memory work library? Or is there any other suggestion for my problem? Thank you very much.&lt;BR /&gt;&lt;BR /&gt;Yun&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;libname shared "%sysfunc(pathname(work))";&lt;BR /&gt;&lt;BR /&gt;data pt; /*generate sample dataset*/&lt;BR /&gt;do pt=1 to &amp;amp;numPt;&lt;BR /&gt;gender = ifc(uniform(&amp;amp;seed) &amp;gt; .45, 'M', 'F');&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;

rsubmit task1 wait=no inheritlib=(shared); /*use inheritlib to set shared to the server work library*/&lt;BR /&gt;data shared.task1;&lt;BR /&gt;set shared.pt;  /* &amp;lt;--   ERROR: File SHARED.PT.DATA does not exist. */&lt;BR /&gt;run;&lt;BR /&gt;endrsubmit;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:32:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/495308#M72342</guid>
      <dc:creator>myun1</dc:creator>
      <dc:date>2018-09-13T14:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to access datasets in the  server in-memory work library from rsubmit subtasks?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/495507#M72351</link>
      <description>&lt;P&gt;Don't share WORK libraries between SAS sessions as they are designed to be separate. Share permanent SAS libraries instead.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 20:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/495507#M72351</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-09-13T20:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to access datasets in the  server in-memory work library from rsubmit subtasks?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/495679#M72376</link>
      <description>&lt;P&gt;Thank you for replying. I'll try to figure out if there is any way to share other in-memory library other than the work lib.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 13:52:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/495679#M72376</guid>
      <dc:creator>myun1</dc:creator>
      <dc:date>2018-09-14T13:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to access datasets in the  server in-memory work library from rsubmit subtasks?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/495851#M72385</link>
      <description>&lt;P&gt;How are you defining it for WORK? You should be able to do it by replacing the WORK directory reference with a permanent directory reference.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 23:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/495851#M72385</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-09-14T23:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to access datasets in the  server in-memory work library from rsubmit subtasks?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/495863#M72386</link>
      <description>&lt;P&gt;I have also tried to share an in-memory library other than the WORK library. It does not work either. I get the same error for the following code.&amp;nbsp;Howerver, the code wroks&amp;nbsp;fine without the MEMLIB&amp;nbsp;option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my full code.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname shared "D:\Research\Parallel Data" MEMLIB;

data shared.pt; /*generate sample dataset*/
do pt=1 to 1000;
gender = ifc(uniform(123) &amp;gt; .45, 'M', 'F');
output;
end;
run;

%let rc=%sysfunc(grdsvc_enable(_all_, resource=SASApp));
options autosignon;

rsubmit task1 wait=no inheritlib=(shared);
data shared.task1;
set shared.pt; 
run;

waitfor _all_    task1;
endrsubmit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Sep 2018 01:19:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/495863#M72386</guid>
      <dc:creator>myun1</dc:creator>
      <dc:date>2018-09-15T01:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to access datasets in the  server in-memory work library from rsubmit subtasks?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/495991#M72393</link>
      <description>&lt;P&gt;Try repeating your libname statement in the RSUBMIT block. Also test without MEMLIB - does that work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure if you can share MEMLIB libraries across SAS sessions. This link says a MEMLIB library is lost at the end of a SAS session:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=hostwin&amp;amp;docsetTarget=p041tbb02reefnn1jmup3zo7tirr.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p11vm7zdrkkuybn1jtpl4eh4lieg" target="_blank"&gt;https://documentation.sas.com/?docsetId=hostwin&amp;amp;docsetTarget=p041tbb02reefnn1jmup3zo7tirr.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p11vm7zdrkkuybn1jtpl4eh4lieg&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you track this to SAS Tech Support for a definitive answer.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Sep 2018 22:46:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/495991#M72393</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-09-15T22:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to access datasets in the  server in-memory work library from rsubmit subtasks?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/495992#M72394</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for the suggestion. I tried that before and it didn’t work either. Maybe it is not a good idea to share the MEMLIB across SAS sessions. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will try to contact tech-support. Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Sep 2018 00:22:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/495992#M72394</guid>
      <dc:creator>myun1</dc:creator>
      <dc:date>2018-09-16T00:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to access datasets in the  server in-memory work library from rsubmit subtasks?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/496078#M72403</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/233111"&gt;@myun1&lt;/a&gt;&amp;nbsp;no problem. Still worth using parallel SAS sessions with permanent SAS libraries though to speed performance.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Sep 2018 20:25:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-access-datasets-in-the-server-in-memory-work-library-from/m-p/496078#M72403</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-09-16T20:25:10Z</dc:date>
    </item>
  </channel>
</rss>

