<?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 working directory in EG 7.1 on citrix machine due to storage issues in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805657#M40488</link>
    <description>&lt;P&gt;I ran that and the result was a location I have no access to. Pardon the blackout...those are work-related user/pc numbers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASwork.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70057iF6E96276064C7C08/image-size/large?v=v2&amp;amp;px=999" role="button" title="SASwork.jpg" alt="SASwork.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Apr 2022 01:09:32 GMT</pubDate>
    <dc:creator>NMB82</dc:creator>
    <dc:date>2022-04-03T01:09:32Z</dc:date>
    <item>
      <title>Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805649#M40486</link>
      <description>&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I'm running SAS EG 7.1 on a Citrix machine at work. I'm trying to do a very large sql pull (50gb) and keep running out of disk space. Our server drive has plenty of storage, so I assume switching the working directory to a folder on that drive temporarily will avoid this error?&lt;/P&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;The error says "*insufficient disk space....file is damaged. I/O processing did not complete. You may be able to execute sql statement successfully if you allocate more space to the WORK library."* I don't seem to have access to the config file and I've tried to change it programmatically with no luck. I am trying to save the resulting dataframe to a server folder already with a LIBNAME statement, but I think the temporary files created in WORK during the process are too much to handle. It seems the DLGCDIR function, that would help with this, starting with SAS 9.4 doesn't work with EG 7.1. Any help?&lt;/P&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I've tried both:&lt;/P&gt;
&lt;PRE class="_3GnarIQX9tD_qsgXkfSDz1"&gt;&lt;CODE class="_34q3PgLsx9zIU5BiSOjFoM"&gt;    x 'cd "Q:\folder"';
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;and&lt;/P&gt;
&lt;PRE class="_3GnarIQX9tD_qsgXkfSDz1"&gt;&lt;CODE class="_34q3PgLsx9zIU5BiSOjFoM"&gt;   data _null_;
       rc = system( 'cd "Q:\folder"' );
       if rc = 0 
          then putlog 'Command successful';
          else putlog 'Command failed';
    run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;These run fine, but in the log it still says my working directory is unchanged:&lt;/P&gt;
&lt;PRE class="_3GnarIQX9tD_qsgXkfSDz1"&gt;&lt;CODE class="_34q3PgLsx9zIU5BiSOjFoM"&gt;    SYMBOLGEN:  Macro variable SASWORKLOCATION resolves to "C:\Users\user\AppData\Local\Temp\SEG5432\SAS Temporary 
                Files\citrixMachineDrive\Prc2/"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is my simplified SAS code. I am using UNION on several datasets in my Q server drive folder (TB's of space) within the FROM statement (50GB total). I'm then left joining on a smaller dataset from the database and saving the resulting dataset to the Q drive folder. This was code that was previously run on a weekly/monthly basis, but now we want a full year of data. Worse case scenario is I rework the related code into PySpark, but I was hoping to get this done quickly and that will take me some time.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME PCLIB = 'Q:/folder';



PROC SQL FULLSTIMER;
CREATE TABLE PCLIB.NEED (COMPRESS=ON) AS
SELECT
&amp;nbsp; &amp;nbsp;A.COL1,
&amp;nbsp; &amp;nbsp;CASE WHEN B.COL2 NE '' THEN B.COL2 ELSE A.COL3 END AS COL4,
&amp;nbsp; &amp;nbsp;SUM(COL5) AS COL6,
&amp;nbsp; &amp;nbsp;SUM(COL7) AS COL8
FROM (SELECT * FROM PCLIB.TABLE1 UNION
&amp;nbsp; &amp;nbsp; &amp;nbsp; SELECT * FROM PCLIB.TABLE2 UNION
&amp;nbsp; &amp;nbsp; &amp;nbsp; SELECT * FROM PCLIB.TABLE3 UNION
&amp;nbsp; &amp;nbsp; &amp;nbsp; SELECT * FROM PCLIB.TABLE4 UNION
&amp;nbsp; &amp;nbsp; &amp;nbsp; SELECT * FROM PCLIB.TABLE5 UNION
&amp;nbsp; &amp;nbsp; &amp;nbsp; SELECT * FROM PCLIB.TABLE6
&amp;nbsp; &amp;nbsp; &amp;nbsp; ) AS A
LEFT JOIN TABLE_db B ON A.ID=B.ID
GROUP BY
COL1,
COL4;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 03 Apr 2022 16:11:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805649#M40486</guid>
      <dc:creator>NMB82</dc:creator>
      <dc:date>2022-04-03T16:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805653#M40487</link>
      <description>&lt;P&gt;Run this in your SAS EG session:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %sysfunc(pathname(WORK));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Does this match the Citrix WORK location? Typically SAS WORK storage should be located on specially configured SAS App server storage for best performance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: I'm assuming that you are using a remote SAS server. If you are using a connection profile in EG then this would be the case.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 01:05:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805653#M40487</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-04-03T01:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805657#M40488</link>
      <description>&lt;P&gt;I ran that and the result was a location I have no access to. Pardon the blackout...those are work-related user/pc numbers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASwork.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70057iF6E96276064C7C08/image-size/large?v=v2&amp;amp;px=999" role="button" title="SASwork.jpg" alt="SASwork.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 01:09:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805657#M40488</guid>
      <dc:creator>NMB82</dc:creator>
      <dc:date>2022-04-03T01:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805661#M40489</link>
      <description>&lt;P&gt;Are you running SAS locally for remotely? If you use a connection profile in EG then you will be connecting to a remote SAS server.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 01:23:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805661#M40489</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-04-03T01:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805662#M40490</link>
      <description>&lt;P&gt;It's run remotely on a citrix virtual machine. I have no direct access to my local pc through SAS...only the company server.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 01:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805662#M40490</guid>
      <dc:creator>NMB82</dc:creator>
      <dc:date>2022-04-03T01:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805664#M40491</link>
      <description>&lt;P&gt;That's doesn't really answer my question. EG is only a client app that works with either a local SAS installation, which in your case would also be Citrix, or with a remote SAS installation, in your case remote from Citrix. Do you use a connection profile in EG? If you do, then you are connecting to a remote (from Citrix) server-based SAS installation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 01:47:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805664#M40491</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-04-03T01:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805667#M40492</link>
      <description>&lt;P&gt;In your EG connection does it say "do not use a profile" or are you connected to a server profile?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1648951331693.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70060i503FA5D59F681DD9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1648951331693.png" alt="Patrick_0-1648951331693.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;EG is just the client. The relevant bit for what you're dealing with is where SAS executes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 02:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805667#M40492</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-04-03T02:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805668#M40493</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I understand now. I do not use a profile...it says exactly that, "do not use a profile." I haven't used SAS EG a whole lot. I just started at this company and we're currently moving everything from SAS to Python/Spark.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 02:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805668#M40493</guid>
      <dc:creator>NMB82</dc:creator>
      <dc:date>2022-04-03T02:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805673#M40494</link>
      <description>&lt;P&gt;May-be share your SQL. If this is just about copying data from a database to a "local" disk then it depends very much on your SQL how much SAS WORK actually is required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like you don't have enough space on your C-Drive.&lt;/P&gt;
&lt;P&gt;First measure:&lt;/P&gt;
&lt;P&gt;1. Close all your EG sessions&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Go to C:\Users\&amp;lt;your user&amp;gt;\AppData\Local\Temp&lt;/P&gt;
&lt;P&gt;3. Delete all folders starting with name SEG-....&lt;/P&gt;
&lt;P&gt;Note: ....\AppData\.. is a hidden folder. You either need to change your folder views to also show hidden files and folders or copy/paste the path&amp;nbsp;C:\Users\&amp;lt;your user&amp;gt;\AppData into the File explorer to get past the hidden folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If after this there is still not enough space on your C-drive and you can't delete other files to create the required disk space:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WORK gets created during SAS invocation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my pretty much vanilla local SAS installation the .cfg that defines the path is here: C:\Program Files\SASHome\SASFoundation\9.4\nls\u8\sasv9.cfg&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1648952826535.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70062i9E83A70B6E2898B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1648952826535.png" alt="Patrick_0-1648952826535.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;IF you change this .cfg directly: Take first a backup!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure how exactly you would need to replace !TEMP but it must be something dynamic and not a hardcoded path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WORK should point to the fastest disk available so repointing it to some network drive will highly likely impact SAS performance.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 02:45:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805673#M40494</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-04-03T02:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805674#M40495</link>
      <description>&lt;P&gt;In that case, since EG and SAS configuration is locked down under Citrix, you will either need to talk to your SAS administrator regarding getting more space, or write directly to your own SAS library where there is more space, like this: LIBNAME MyLIb 'd:\MyFolder';&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 02:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805674#M40495</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-04-03T02:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805702#M40496</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/322145"&gt;@NMB82&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;1.Looks like the SAS workspace is in your %APPDATA%&amp;nbsp; folder and typically users have access to it even if it is a remote desktop. Remember you are able to write to it. Check if your SAS / SAS EG is distributed/streamed as a virtual app.&lt;/P&gt;
&lt;P&gt;2. To transfer convert SAS datasets to python data frame one does not need SAS (&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;we're currently moving everything from SAS to Python/Spark&lt;/STRONG&gt;".). Python pandas will do it. I would use something like this&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;import pandas as pd
df=pd.read_sas("Path to your sas dataset")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;3,Even if you are not able to locate/modify your SAS configuration files, you can still use the space on server. Simply&amp;nbsp;have the remote location mapped and mounted at the following location.(I got this location from your posts above.). Typically the users do have the access themselves, but in case of difficulty request assistance from Desktop support.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="_3GnarIQX9tD_qsgXkfSDz1"&gt;&lt;CODE class="_34q3PgLsx9zIU5BiSOjFoM"&gt;C:\Users\user\AppData\Local\Temp\SEG5432&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 12:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805702#M40496</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-04-03T12:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805712#M40497</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/322145"&gt;@NMB82&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From looking at all information exchanges so, this is what I was able to conclude - Please feel free to correct my misunderstanding:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;It looks like your company have installed SAS software (Enterprise Guide) on a Citrix Presentation Server, and they stream the display back to the user's desktop.&amp;nbsp; i.e. Users such as yourself, would see an Icon in their Citric Portal, and when they click on, it would start the software on the Citrix Server, and stream the Graphical User Interfaces (GUI) back to user's desktop. There are no local processing on the user's desktop, everything is running on the Citrix Server, only the Keyboard strokes and mouse clicks from the user's Desktop are recognized, and applied to the SAS software (Enterprise Guide) instance running on the Citrix Server.&lt;/LI&gt;
&lt;LI&gt;That's why you are seeing SAS Enterprise Guide running without Profile - It's running locally on the Citrix Server, and not on your desktop!&lt;/LI&gt;
&lt;LI&gt;As a user, you have no access to the SAS configuration nor the ability to change it!&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Now that we have that out of the way, let's focus on how to address your Query issues "&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;I'm trying to do a very large sql pull (50gb) and keep running out of disk space&lt;/EM&gt;&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;If you are pulling data from a Database (Not SAS), then I would recommend&amp;nbsp;
&lt;UL&gt;
&lt;LI&gt;Using this SAS OPTIONS statement to trace your SQL query&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="lia-indent-padding-left-90px"&gt;OPTIONS DEBUG=DBMS_SELECT SASTRACE=',,,d' SASTRACELOC=SASLOG NOSTSUFFIX;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="list-style-type: none;"&gt;
&lt;UL&gt;
&lt;LI&gt;Reading through this paper for some additional tips and recommendations &lt;A title="Working with a DBMS using SAS® Enterprise Guide®" href="https://support.sas.com/resources/papers/proceedings11/306-2011.pdf" target="_self"&gt;Working with a DBMS using SAS® Enterprise Guide®&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;UL&gt;
&lt;LI&gt;Try to assign a library to a location on the Citrix Server filesystem that has enough disk space, You probably would need to get that information from your Citrix Administration team, and save your query result in that library instead of the WORK library&lt;/LI&gt;
&lt;LI&gt;Ask yourself, do your really need all 50 GB?
&lt;UL&gt;
&lt;LI&gt;Can you review your query and minimize your returned records &amp;amp; columns?&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Use the COMPRESS=YES option to compress the output data set. This may help with reducing the required disk space to store the data.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Ahmed&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 14:07:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805712#M40497</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2022-04-03T14:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805727#M40498</link>
      <description>&lt;P&gt;Thank you all, I'll give this all a shot. I've also updated the OP with my SAS code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131732"&gt;@Sajid01&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 16:09:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805727#M40498</guid>
      <dc:creator>NMB82</dc:creator>
      <dc:date>2022-04-03T16:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805745#M40499</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/322145"&gt;@NMB82&lt;/a&gt;&amp;nbsp; - Just bear in mind that all of the table joining in your SQL query will be done in SAS WORK regardless of whether you store the results in a permanent library. So a solution to increasing your SAS WORK space is still needed.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 19:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805745#M40499</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-04-03T19:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805797#M40500</link>
      <description>&lt;P&gt;Ouch. You don't know this yet, but in SAS code like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL FULLSTIMER;
CREATE TABLE PCLIB.NEED (COMPRESS=ON) AS
SELECT
   A.COL1,
   CASE WHEN B.COL2 NE '' THEN B.COL2 ELSE A.COL3 END AS COL4,
   SUM(COL5) AS COL6,
   SUM(COL7) AS COL8
FROM (SELECT * FROM PCLIB.TABLE1 UNION
      SELECT * FROM PCLIB.TABLE2 UNION
      SELECT * FROM PCLIB.TABLE3 UNION
      SELECT * FROM PCLIB.TABLE4 UNION
      SELECT * FROM PCLIB.TABLE5 UNION
      SELECT * FROM PCLIB.TABLE6
      ) AS A
LEFT JOIN TABLE_db B ON A.ID=B.ID
GROUP BY
COL1,
COL4;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is a recipe for disaster. Complex joins of large tables cause SAS to create a utility file in WORK following the "everything including the kitchen sink", and that exceeds your storage. It also takes unnecessarily long.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In which tables are COL5 and COL7 contained?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 07:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805797#M40500</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-04T07:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805841#M40502</link>
      <description>Patrick has already given you the best solution .&lt;BR /&gt;a.k.a  Change file "sasv9.cfg" .&lt;BR /&gt;If you can not change it . Try use option user like :&lt;BR /&gt;&lt;BR /&gt;libname x v9 "d:\temp" ;&lt;BR /&gt;options user=x;&lt;BR /&gt;...........your sas code ............&lt;BR /&gt;&lt;BR /&gt;But this only save your temp sas datasets in WORK into X .&lt;BR /&gt;The file utility sas datasets would not change .(I think SQL would generate this kind of utility datasets).</description>
      <pubDate>Mon, 04 Apr 2022 12:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805841#M40502</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-04T12:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change working directory in EG 7.1 on citrix machine due to storage issues</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805847#M40504</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/322145"&gt;@NMB82&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you all, I'll give this all a shot. I've also updated the OP with my SAS code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131732"&gt;@Sajid01&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/322145"&gt;@NMB82&lt;/a&gt;&amp;nbsp;Now that you've shared your code we might find a coding alternative that will require much less disk space during processing. The SQL you formulated will require a lot of sorting - and such intermediary tables get stored in UTILLOC which normally resides in the same place like WORK ...which is on your C-drive. Sorting normally requires a multiple of disk space of your source table during processing.&lt;/P&gt;
&lt;P&gt;Some tweaks to your code will likely drastically reduce the required disk space - but we need to know a bit more about your data to provide a solution that will work for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Questions&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;1. How much free space do you have on your C-drive?&lt;/P&gt;
&lt;P&gt;2. Are COL5 and COL7 from the "table" with alias A or B?&lt;/P&gt;
&lt;P&gt;3. You are using UNION and not UNION ALL. UNION alone will dedup your data but requires a lot of sorting to do so. Do you really need to dedup?&lt;/P&gt;
&lt;P&gt;4. What's the volume of the table with alias B? If you execute the following code what's the volume of table TEST?&lt;/P&gt;
&lt;PRE&gt;data test(compress=no);
  set TABLE_db(keep=id col2);
run;&lt;/PRE&gt;
&lt;P&gt;5. For your "group by col1, col4": Can there be a distinct value combination that exists in more than one of your source tables Table1 - Table4? Or could we eventually sum table by table separately?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;N.B: Changing the .cfg to repoint WORK would be the very last measure - and you would also need to repoint UTILLOC. Let's first try and tweak your code.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 13:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-working-directory-in-EG-7-1-on-citrix-machine-due-to/m-p/805847#M40504</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-04-04T13:28:13Z</dc:date>
    </item>
  </channel>
</rss>

