BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Not sure if this is the right forum to post to. We have a server environment, so multiple SAS processes will be running at once. Two-part question:

1. If I run Proc Delete to clean up workspace, will I clean up all users' work datasets or just the workspace datasets from the particular program that is running:

Proc Delete Data=Work._ALL_; Run;

2. If 2 programs are running and both are using SAS Work library and both create a dataset "x", will that cause a conflict or does SAS manage this such that x will be distinguished in each program?

Thanks,
--Charlie
2 REPLIES 2
JackHamilton
Lapis Lazuli | Level 10
SAS is usually set up so that each session gets its own work library. You won't see the work datasets belonging to other users, and other users won't see yours.

To test this, try the statement

libname work list;

in two different sessions, and see if the physical names are different. If they are, you won't have to worry about these issues.
deleted_user
Not applicable
I tried this and this is what I get. Looks like it is indeed going to different places so we're ok. Thanks!

NOTE: Libref= WORK

Scope= IOM ROOT COMP ENV

Engine= V9

Access= TEMP

Physical Name= E:\SAS\SAS_TEMP\_TD6936\Prc2

File Name= E:\SAS\SAS_TEMP\_TD6936\Prc2



And:



NOTE: Libref= WORK

Scope= IOM ROOT COMP ENV

Engine= V9

Access= TEMP

Physical Name= E:\SAS\SAS_TEMP\_TD5284\Prc2

File Name= E:\SAS\SAS_TEMP\_TD5284\Prc2

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 731 views
  • 0 likes
  • 2 in conversation