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
Quartz | Level 8
a future answer, use dsoptions=note2err

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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