Desktop productivity for business analysts and programmers

program fails in batch mode, runs fine in windowed mode

Reply
Super Contributor
Posts: 346

program fails in batch mode, runs fine in windowed mode

Hello,

 

When I run a certain process flow in Enterprise Guide in batch I get the following error message:

 

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

 

If I run the programs separately, I don't get an error message. What am I doing wrong?

 

Thanks & kind regards

Super User
Posts: 9,600

Re: program fails in batch mode, runs fine in windowed mode

Posted in reply to user24feb

You most probably have "add results to project" and "open results automatically" activated. So one of your nodes creates a dataset, which is automatically added to the project tree and open for display in the background, while the next node wants to overwrite that dataset.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Contributor
Posts: 53

Re: program fails in batch mode, runs fine in windowed mode

Posted in reply to user24feb

Hi

Two thoughts from me:

1. Have you checked that your batch EG and windowed EG are using the same autoexec (check the logs)?

2. Are you using %sysfunc(open(.....)) wihin your code?   If so, are you closing the dataset with %sysfunc(close(...)) as it could be that the table is remaining open and therefore locked for user access.

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