BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
_Hopper
Obsidian | Level 7

I created a dataset, but the system says it is locked. When I use the LOCK statement it says it is not locked by me and cannot be unlocked.

 

ERROR: You cannot open WORK.TESTX.DATA for output access with member-level control because WORK.TESTX.DATA is in use by you in
resource environment IOM ROOT COMP ENV.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds

40 ;


41 run;
42
43 LOCK work.testx CLEAR ;
ERROR: WORK.TESTX.DATA is not locked by you.
44

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

You probably have the file open in some other window.  Are you using Enterprise Guide? Or SAS/Studio?  I think they use IOM to connect to SAS so that might be why that IOM appears in the name of who has it open.

View solution in original post

1 REPLY 1
Tom
Super User Tom
Super User

You probably have the file open in some other window.  Are you using Enterprise Guide? Or SAS/Studio?  I think they use IOM to connect to SAS so that might be why that IOM appears in the name of who has it open.

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
  • 1 reply
  • 1694 views
  • 0 likes
  • 2 in conversation