I am trying to use the automatic macro variables in SAS for error handling, I found that &syscc will be 0 when an %include statement fails due to a nonexistent file. If I am relying on &syserrortext to capture this error message, I can cannot reset the &syserrortext within the same session.
Now I have &syscc that won't capture errors, &syserrortext that captures but cannot be reset, is there an alternate way to handle this?