<?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: redirecting remote sas work library through rsubmit in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/293950#M61296</link>
    <description>&lt;P&gt;WORK is always pointing to directory that is created when a SAS session starts and removed when the session ends.&lt;/P&gt;
&lt;P&gt;Either change the library of your datasets to a permanent one, or use proc copy to copy datasets from WORK to another (permanent) library.&lt;/P&gt;
&lt;P&gt;You might consider doing this to automate it for testing:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname somelib 'path_to_permanent_location');

data _null_;
if "&amp;amp;runtype" = "TEST"
then call symput('work','somelib');
else call symput('work','work');
run;

data &amp;amp;work..your_dataset;
.
.
.
run;
 &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 25 Aug 2016 06:39:13 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-08-25T06:39:13Z</dc:date>
    <item>
      <title>redirecting remote sas work library through rsubmit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/293880#M61249</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me on how to redirect sas work library location on unix / AIX environment. There is a default work library location which gets assigned for every SAS session when we open it but I want to change and use the specific directory as a work library for my sas session through rsubmit way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know the command line solution for the same "nohup sas -work /dir/01 program.sas &amp;amp;" but I want to know how to do the same thing using rsubmit in a sas session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I want to redirect work library files to a permenant library when running codes using SAS session and rsubmit. I'm ok deleting those files manually later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 23:20:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/293880#M61249</guid>
      <dc:creator>dodger</dc:creator>
      <dc:date>2016-08-24T23:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: redirecting remote sas work library through rsubmit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/293883#M61251</link>
      <description>&lt;P&gt;If you mean that you can use one level names and data goes to or is read from that location then then you &lt;STRONG&gt;may&lt;/STRONG&gt; be able to use the USER option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Options user="library-specification"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but I have never tried this with anything resembling rsubmit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would have to explicitly reference the WORK library for anything there. The USER option does not clean up at the end of a session.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 22:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/293883#M61251</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-24T22:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: redirecting remote sas work library through rsubmit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/293885#M61253</link>
      <description>&lt;P&gt;If you create a sasuser library all one level tables will be assigned there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rsubmit;&lt;/P&gt;
&lt;P&gt;libname sasuser 'path to folder';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data class;&lt;/P&gt;
&lt;P&gt;set sashelp.class;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc datasets library = sasuser;&lt;/P&gt;
&lt;P&gt;run;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;endrsubmit;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 22:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/293885#M61253</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-24T22:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: redirecting remote sas work library through rsubmit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/293892#M61258</link>
      <description>&lt;P&gt;Thanks you...&lt;SPAN&gt;Basically I want to redirect work library files to a permenant library when running codes using SAS session and rsubmit. I'm ok deleting those files manually later.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 23:24:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/293892#M61258</guid>
      <dc:creator>dodger</dc:creator>
      <dc:date>2016-08-24T23:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: redirecting remote sas work library through rsubmit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/293893#M61259</link>
      <description>&lt;P&gt;SASUSER will do that, since its a reference to a folder location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2016 23:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/293893#M61259</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-24T23:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: redirecting remote sas work library through rsubmit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/293925#M61282</link>
      <description>&lt;P&gt;Creating a USER library might be the easiest thing since redirecting WORK would require changing the option when SAS started. You can just create a new library with the libref of USER. &amp;nbsp;Or you could use the USER option to specify another libref to use instead.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;signon;
rsubmit;
libname user '/myfiles';
data xxx;
 set sashelp.class;
run;
endrsubmit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But you need to use single level names for your "work" datasets. &amp;nbsp;If you reference XXX then SAS will see it as USER.XXX, but if you reference WORK.XXX then it will still go to the WORK directory.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 03:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/293925#M61282</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-08-25T03:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: redirecting remote sas work library through rsubmit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/293950#M61296</link>
      <description>&lt;P&gt;WORK is always pointing to directory that is created when a SAS session starts and removed when the session ends.&lt;/P&gt;
&lt;P&gt;Either change the library of your datasets to a permanent one, or use proc copy to copy datasets from WORK to another (permanent) library.&lt;/P&gt;
&lt;P&gt;You might consider doing this to automate it for testing:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname somelib 'path_to_permanent_location');

data _null_;
if "&amp;amp;runtype" = "TEST"
then call symput('work','somelib');
else call symput('work','work');
run;

data &amp;amp;work..your_dataset;
.
.
.
run;
 &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Aug 2016 06:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/293950#M61296</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-08-25T06:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: redirecting remote sas work library through rsubmit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/294234#M61363</link>
      <description>&lt;P&gt;Thanks a lot everyone. It worked!! Like Always!!!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 00:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/294234#M61363</guid>
      <dc:creator>dodger</dc:creator>
      <dc:date>2016-08-26T00:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: redirecting remote sas work library through rsubmit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/294257#M61368</link>
      <description>&lt;P&gt;Don't forget to pick an answer.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 04:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/redirecting-remote-sas-work-library-through-rsubmit/m-p/294257#M61368</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-08-26T04:20:33Z</dc:date>
    </item>
  </channel>
</rss>

