BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi
Is there a systems option that can change NOTES to ERRORS in the log that relate to unitialized variables? In fact, is there a systems option that escalates all notes and warnings to errors? I find the systems option DKRICOND and DKROCOND very useful for making sure that potentially serious errors in the drop, keep, rename statements are caught by classifying these as errors.

Thanks very much,
Robin.
4 REPLIES 4
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Give us an idea what "condition" you are attempting to treat as an ERROR as opposed to a NOTE/WARNING, please? Share with a code example revealed in a SAS log, preferably (paste the content in a reply to your post).

Scott Barry
SBBWorks, Inc.
Doc_Duke
Rhodochrosite | Level 12
Robin,

My question is what are you trying to do with this? All SAS steps have notes, e.g.
NOTE: DATA statement used:
Do you want to STOP the program (as ERRORs generally do), or just get information about processing?

There are programming approaches to each of those, but I am unaware of an option.

Doc Muhlbaier
Duke
deleted_user
Not applicable
Hi, thanks for the replies. Specifically, I would like to change the following "NOTE: Variable WIEGHT is uninitialized" from a note to an error (i.e. stop the code). Sometimes, this is missed by other beginners to SAS and can lead to significant errors. I figured a systems option would do the trick, but I cannot find anything in relation to this. Any other ways to catch this error would be appreciated (apart from training on checking logs properly of course).
himself
Pyrite | Level 9
a future answer, use dsoptions=note2err

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2206 views
  • 0 likes
  • 4 in conversation