Prev: Interesting post about SAS and the Pharmaceutical Industry on
Next: Learning Edition and Windows &
From: Dan Abner on 19 Feb 2010 11:36 Hello, I receive the following error when attempting to use the OPEN function after modifying a ds in a DATA step even after the DATA step executes with both RUN & QUIT statements. Any ideas? (BTW, the supplied statements are contained in a larger macro). ERROR: You cannot open WORK.TEMP1.DATA for output access with member-level control because WORK.TEMP1.DATA is in use by you in resource environment DATASTEP. %DO I = *3* %TO &NVAR; DATA TEMP1; SET TEMP1; RENAME %SYSFUNC(VARNAME(&DSID,&I)) = &DS.&I; WHERE SCHOOLID NOT CONTAINS 'ALL'; RUN; QUIT; %END; %LET DSID2 = %SYSFUNC(OPEN(TEMP1,I)); %DO I = *1* %TO &NVAR; %LET VLIST = &VLIST %SYSFUNC(VARNAME(&DSID2,&I)); %END;
|
Pages: 1 Prev: Interesting post about SAS and the Pharmaceutical Industry on Next: Learning Edition and Windows & |