I have deleted a couple of observations from my dataset. When I run the code it works fine and deletes the cases. However, when I close out of SAS and open it up the next day to continue working, I run my libname statement and go to where I left off in my code to begin working. When I run new code, it adds the deleted cases back in. It is not saving that I deleted them early on in my code. Do I have to rerun all my code everytime I log in? Shouldn't I just be able to rerun the libname and pick up where I left off? Here is the code I used to delete the cases: DATA hemo.PLAY; SET hemo.hemo_mrg2; IF _CaseNumber="10.02849" THEN DO; DOB='29SEP2009'd; _Age = DateofDeath - DOB; END; IF _CaseNumber="10.03520" THEN DO; DOB='02AUG2010'd; _Age = DateofDeath - DOB; END; IF UniqueKey in (23,24) THEN delete; IF _CaseNumber=11.04184 THEN delete; IF _CaseNumber=11.02221 THEN delete; IF _CaseNumber=11.04744 THEN delete; IF _CaseNumber=10.04942 THEN delete; RUN;
... View more