SUBSCRIBE SAS-L Tom Smith
2008-07-11 01:50:45 UTC
Here is the error message:
ERROR: You cannot open SASLIB.MYDATA.DATA for output access with member-
level control because SASLIB.MYDATA.DATA is in use by you in resource
Here is what I did:
1) created a dataset with
create table xxx
( varx char(3).
2) proc sql;
insert into xxx
3) data xxx;
if varx='ddd' then vary=0;
all of above steps ran smoothly, but 2) and 3) are in a do loop and each is
run conditionally. It seems that there is a step which did not close the
dataset, and I tried adding a close statement and also tried close( )
function after each step. But still got the error message.
I doubt there may be some mechanism behind that handles the lock of a
dataset, but can not tell exactly what.
Thanks in advance for any hint.