When run a SAS using interactive mode, when error happened,how to stop the code and not override the rest dataset with an empty dataset? if we select the follow three datasteps and submit them together, in the first step,dataset 'a' would be created , then in the second ,there will be a error bacuse no dataset named sashelp.class_notexist . and then in the third step, dataset 'a' will be destroyed . How to specify an option to protect dataset 'a' after error happen? so when an error happen SAS will stop do any other thing and keep dataset 'a' as the first step. data a; set sashelp.class; run; data one; set sashelp.class_notexist; run; data a; set one; run;
... View more