BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
cbrotz
Pyrite | Level 9

Can anyone shed some light on what this error means?  I did actually open the file referenced and it opens manually, but when I run the job in Windows Task Scheduler, it says it is in use.  Thank you!

 

ERROR: You cannot open REPORTS.DAILYREPORT3RESALECON.DATA for output access with member-level control because
REPORTS.DAILYREPORT3RESALECON.DATA is in use by you in resource environment IOM ROOT COMP ENV.

1 ACCEPTED SOLUTION

Accepted Solutions
cbrotz
Pyrite | Level 9

I ended up opening an empty EG project and copying the current code module and all output modules into the new EG.  I also deleted all the SAS output Excel files out of the output folder. It has run successfully for the past three days. I still do not know why this error occurs to begin with but this solved it for now.

View solution in original post

7 REPLIES 7
ChrisHemedinger
Community Manager

Usually this means that you have the data set open in another app, such as SAS Enterprise Guide.  Make sure that all of your EG sessions are closed when you try to run something in a scheduled task -- if possible.  Especially if you're working with the same data.

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
cbrotz
Pyrite | Level 9

I just shut the machine down, restarted and re-ran and it worked.  There are many many files in that code.  I don't know why just that file was hung up, but it looks like it is resolved.  Thanks.

ballardw
Super User

One cause of that type of message is that you are examining the properties of a data set using one of the tools such as SAS Explorer or have the table open in table view and did not shut the window prior to running the code.

cbrotz
Pyrite | Level 9

The weird thing is -  it says "opened by you"  which would mean someone opened that file on that machine using some SAS tool but none are open.  I am having ongoing issues with this particular EG project. It is very large and I don't have time to rewrite at the moment but I think it just has too many output files.

ChrisHemedinger
Community Manager

The "IOM ROOT COMP ENV" is a give-away -- the file is held by a process that's in a SAS Workspace server, probably with SAS Enterprise Guide or the SAS Add-In for Microsoft Office as the client.  If you think all of your EG sessions are closed, you might want to check Task Manager for SEGuide.exe instances.  

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
cbrotz
Pyrite | Level 9

So something in the SAS server is holding the file?  I am not expecting you to know for sure but you think it is a server thing?

cbrotz
Pyrite | Level 9

I ended up opening an empty EG project and copying the current code module and all output modules into the new EG.  I also deleted all the SAS output Excel files out of the output folder. It has run successfully for the past three days. I still do not know why this error occurs to begin with but this solved it for now.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 7 replies
  • 18192 views
  • 0 likes
  • 3 in conversation