08-01-2014 10:22 PM
I assume you're asking this question because you want to automatically scan SAS logs for certain messages. As states SAS logs are text files so it's easy to read them. It can be more challenging though to parse the log and extract the information you're after.
There is quite a lot of information in SAS Notes and Whitepapers around dealing with information retrieval from SAS logs and I suggest that you invest some kind in researching what's already around before starting to spend too much time with coding.
Below only 2 links which might be useful for you: