BookmarkSubscribeRSS Feed

At the top of my stored procedure I have code that checks prerequisites for it to run successfully, and if I find any issues I want to return a custom error message, and then end the stored process gracefully.  Something like "endsas" but without the error conditions associated with it.


I saw SAS Note:  which gives a workaround but it involves disabling the "Show Log" button across all stored processes which I do not want to do.


1 Comment
Super User

You might want to look in options for the Abort statement / %Abort statement.  At a glance, it looks like they might all write an error to the log, but it's possible you can avoid it.