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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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