BookmarkSubscribeRSS Feed
Krishna123
Calcite | Level 5

Hi,

I am looking for help to write a code that will display number of notes, errors, and warnings in the sas log at the beginning of the log as we can see in sas online training videos. Here is an example:

>     Errors (5)

>     Warning (7)

>     Notes (3)

Appreciate your help.

Krishna

3 REPLIES 3
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Hi,

This is a Q&A forum.  Your request is a provide a "log check" utility.  If you can consolidate down to certain question help would be forthcoming, but I am not going to write an application for you.  For searching, use infile to read the file, and findw or index wot search for ERROR:, WARNING:, or NOTE:.

Reeza
Super User

What you're seeing in the video's is SAS EG or Studio and you're on SAS BASE?

If you need that functionality why not switch to one of those environments? Also, search LexJansen.com for examples of log scanning utility codes or just google search with those key words.

Krishna123
Calcite | Level 5

Thanks. I will try.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 3 replies
  • 835 views
  • 3 likes
  • 3 in conversation