Hello everyone, I want to track error information after a whole SAS program has been finished,I know &syserr will set to 1 immediate after an error happen. BUT &syserr will be override back to 0 when a NO-ERROR step was executed. so finallly &syserr's value react for the last step. if the last step has error then &syserr will be set to 1,, otherwise will be 0. MY question is: how we can know whether there was ANY error happened durng the whole program?------Any macro similar as &syserr but doesn't set back to 0? PLEASE NOTICE:(suppose we CAN'T set a new macro variable after EACH process of the program.such as: %if &syserror=1 then %let flag='error happened" , this need too much extra work if there were too much process in the program,,,maybe there were 1000 datasteps and 500 procedures in the program...) Thanks Mike /*sasprogram.sas*/ %put -----0 &syserr; data a1;/*error happen here,*/ set sashelp.class2; run; %put -----1 &syserr; /* data a(n); set sashelp.class; run; %put -----n &syserr; */ data a100; set sashelp.class; run; %put -----100 &syserr;/*but here &syserror set back from 1 to 0,,,I want a value show us there was ever error happened during the whole program*/
... View more