BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Can SAS show errors while running (not see in xxx.log) ?
6 REPLIES 6
deleted_user
Not applicable
Please be more specific.

See errors where? See errors of what type?

Kind regards

David
deleted_user
Not applicable
Hello David,
I mean that when i run sas script i use command
sas sascript.sas -log xxx.log -print xxx.lst
during running it doesn't show the errors if any, i have to see it in xxx.log file, the question is
is it possible to show the any errors if any during running sas script ?
is there option to show errors while running ?
many thanks
deleted_user
Not applicable
Hello David,
I have one more question, Does SAS may be light version for download to use on my pc for study, I want to learn about it.
deleted_user
Not applicable
Hello David,
I have one more question, Does SAS has light version for download to use on my pc for study, I want to learn it.
deleted_user
Not applicable
If you also use the -unbuflog parameter when you start your batch, then messages are written to the log as they arise rather than paged. With an appropriate text file browser, you can then periodically open your log to check for messages. Note that most browsers will lock the file, and this is to be avoided. However, you can also copy the log and read the copy.

All of this is a little clumsy, but other solutions are possible using additional statements in your program to pop up windows in your operating system when errors are detected. This however is a reasonably complex piece of work, and since I work on the basis that an error in a log means all after the error is tainted, I will usually set the session option to ErrorAbend so that the session stops when an error occurs rather than have some hours of run time to produce a flawed output.

Kind regards

David
Dave_SAS
SAS Employee
The 'light' version of SAS is SAS Learning Edition. More information can be found at: http://support.sas.com/training/le/

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Health and Life Sciences Learning

 

Need courses to help you with SAS Life Sciences Analytics Framework, SAS Health Cohort Builder, or other topics? Check out the Health and Life Sciences learning path for all of the offerings.

LEARN MORE

Discussion stats
  • 6 replies
  • 2168 views
  • 0 likes
  • 2 in conversation