<?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: Change temporary work location within code in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Change-temporary-work-location-within-code/m-p/211378#M52212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you making the SAS/Connect session?&amp;nbsp; If you are using one of the SAS provided scripts then you can modify the command used to launch SAS on the remote machine to include -work option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you are just worried about WORK datasets then just create permanent data sets instead. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2015 16:08:55 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2015-06-22T16:08:55Z</dc:date>
    <item>
      <title>Change temporary work location within code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-temporary-work-location-within-code/m-p/211377#M52211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to redirect my work folder to a different location while in sas using sas statements?&amp;nbsp; I'm using sas 9.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&lt;/P&gt;&lt;P&gt;options work="c:\temp"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That returns this warning&lt;/P&gt;&lt;P&gt;WARNING 11-12: SAS option WORK is valid only at startup of the SAS System or startup of a SAS process. The SAS option is ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will need to run this on a linux server using SAS/Connect.&amp;nbsp; I'm doing a proc ginside with census block data that has over 600 million rows so for this one process I want to redirect the temp space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 15:58:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-temporary-work-location-within-code/m-p/211377#M52211</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2015-06-22T15:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change temporary work location within code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-temporary-work-location-within-code/m-p/211378#M52212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you making the SAS/Connect session?&amp;nbsp; If you are using one of the SAS provided scripts then you can modify the command used to launch SAS on the remote machine to include -work option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you are just worried about WORK datasets then just create permanent data sets instead. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 16:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-temporary-work-location-within-code/m-p/211378#M52212</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-06-22T16:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change temporary work location within code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-temporary-work-location-within-code/m-p/211379#M52213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm connecting using the signon statement. &lt;/P&gt;&lt;P&gt;When proc giniside runs it creates a temp table that is very large.&amp;nbsp; I want it to put that in a location where I have enough space for it to get as big as it needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 16:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-temporary-work-location-within-code/m-p/211379#M52213</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2015-06-22T16:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Change temporary work location within code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-temporary-work-location-within-code/m-p/211380#M52214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect that you want to change the UTILLOC option and not the WORK option.&amp;nbsp; As I said before you can control where the datasets are made by changing the name you use for them.&amp;nbsp; But the placement of intermediate files that a proc might create are controlled by the UTILLOC option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using a script with the SIGNON command then you can modify the script.&amp;nbsp; For example the default script for connecting via TCP to a Unix host includes this line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; type 'sas -dmr -comamid tcp -noterminal ';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can just make a modified version and use it in the SIGNON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the SASCMD= option on the SIGNON then perhaps you can modify that command to include the UTILLOC option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you are connecting to some SAS spawner then I think you would need to make changes there, which would be harder to do by a single user.&amp;nbsp; Perhaps the admin can create a separate service that you can connect to for these types of jobs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 16:34:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-temporary-work-location-within-code/m-p/211380#M52214</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-06-22T16:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change temporary work location within code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-temporary-work-location-within-code/m-p/211381#M52215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;jerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have certain complications here ... the SAS/Connect situation, and working storage as a procedure executes rather than storing a one-level data set name.&amp;nbsp; So you will need to test this to see if it actually works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The general idea is that you set up a library yourself:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname mystuff 'path to folder';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At any point in the program, you can specify:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options user=mystuff;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Automatically from that point forward, all single-level data set names get stored in MYSTUFF, instead of in WORK.&amp;nbsp; Later on, you can restore the original conditions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options user=WORK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MYSTUFF folder will not get cleaned out automatically at the end of your program ...&amp;nbsp; you will need to manage that yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-temporary-work-location-within-code/m-p/211381#M52215</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-06-22T17:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change temporary work location within code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Change-temporary-work-location-within-code/m-p/211382#M52216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for your replies.&amp;nbsp; I was able to figure it out using a Linux application that allowed me to use this command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ sas -work /home/data/temp temp.sas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My task was to find a way to do it in sas then the lead told me to use this approach. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you both for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 20:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Change-temporary-work-location-within-code/m-p/211382#M52216</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2015-06-22T20:02:21Z</dc:date>
    </item>
  </channel>
</rss>

