SASUnit Examples
Version 1.5.0
|
check for errors and set status code and messages More...
Go to the source code of this file.
check for errors and set status code and messages
If the condition i_condition is true, a message is being issued to the SAS log and the following three macro symbols are assigned:
The calling program should determine the name of the macro program currently running with the following line of code at the top of the program: %LOCAL l_macname; %LET l_macname = &sysmacroname ; Do not use &sysmacroname as the value of macro parameter g_error_macro directly , because otherwise it will have a value of "handleError".
If i_verbose has value 1, a message is being written to the SAS log even when i_errorcode is not a true condition.
i_macroname | name of macro where error condition occured |
i_errorcode | error code unique to the calling macro |
i_condition | condition - logical expression, will be evaluated and returned by the macro |
i_text | error message, further information will be issued to the SAS log |
i_verbose | issue message to the SAS log even if i_condition evaluates to false, default is 0 |
Definition in file _handleerror.sas.