I am working on SAS Enterprise 4.3 I have various programs on a project , my requirement is that as soon as there is an error in any of the program , then the sas processing is stopped and i need to capture the error and mail it to the user who is running the project. I would also like to share my thoughts regarding solutions: a) use options errorabend , but this disconnects the user from the server and log is also lost , for which i saved log at a particular location and was able to scan for error and error message but since user is disconnected he/she will have to connect and run that code which is not feasible. b) creating three macros: 1) if &syserr > 0 then %put : &syserrtxt 2) create a macro for mail-successful and unsucessful run as per syserr 3) abort program again as per &syserr Issue with the above aproach is that my codes in individual programs are huge and will have to call this macro again and again in between the codes. c) I am not sure if i can sue conditional processing , if yes then How? Thanks
... View more