Help using Base SAS procedures

How to change Temp/Work Folder with SAS/CONNECT

Reply
Super Contributor
Posts: 398

How to change Temp/Work Folder with SAS/CONNECT

I've been tasked with finding a way to change the temp/work folder on a remote machine at runtime.  Is there options with SIGNON that will allow this?

I apologize if this is not the correct area to post.

Super Contributor
Posts: 398

Re: How to change Temp/Work Folder with SAS/CONNECT

Sorry to reply to my own post but I was unable to find a solution and I'm looking to see if anyone has at least been able to accomplish this.

If I put it under the wrong category please let me know so I can change it.

Thank you

Super User
Posts: 5,260

Re: How to change Temp/Work Folder with SAS/CONNECT

How do you connect to the server?

If you signon using telnet, you can edit the signon script to do what you want to.

But most uses a spawner instead (one reason is that telnet is not considered safe).

When using a spawner, then it's the spawner who kicks the SAS server session, and it can be tricky to influence that.

Why do you want to change the WORK library, and how?

An option is to use another library using the TEMP libname option, which will make it mimic WORK behavior.

Data never sleeps
Super Contributor
Posts: 398

Re: How to change Temp/Work Folder with SAS/CONNECT

Hi LinusH,

Thank you so much for your reply.

We are using a spawner to start the SAS server session.

The reason is that for our project users can select different data to download.  Within that process if they select too much data we want to run that job using a location that has more available space.  If it's a small job we want it to continue to use it's default location for work.  We were hoping there was an option within the signon statement where we could indicate which temp directory we wanted to use that way we could just edit that statement before it's executed.

Thank you so much for your help.  I will look into the TEMP libname option.

Ask a Question
Discussion stats
  • 3 replies
  • 239 views
  • 3 likes
  • 2 in conversation