Chris Greene's tip is what works to get rid of the message ERROR: You cannot open WORK.xxx.DATA for output access with member-level control because WORK.xxx.DATA is in use by you in resource environment IOM ROOT COMP ENV. and seems to make the statement that the default behaviour is to close all data before running SAS programs?