SAS Enterprise Guide

Desktop productivity for business analysts and programmers
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
kanivan51
Obsidian | Level 7

Hi!

 

I'm wondering if there is an opportunity to highlight user-defined words in the log.
For example, I run a macro with a lot of iterations. At the end of each iteration, the duration of this iteration is recorded in the log.
It would be nice to easily find lines with duration.
Only two options come to mind:

 

1. Create a temporary file, where the line with the iteration number and duration will be added;
2. Highlight "duration" in the log by adding before and after some characters. Like this:

%put

===================

&DURATION

===================;

 

But I would like to be able to highlight by the color

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

1. Consider using NONOTES option to not have notes printed to the LOG. Errors will be still displayed. 

2. Consider using NOTE/ERROR in log that will colour the text. I don't think there's a way you can sort it automatically, but it should catch your eye a bit easier. 

3. Consider writing the duration to a separate file - either a text or dataset that can be customized to your desires. 

 

%let duration=20;
%put WARNING: Duration = &duration;
%put ERROR- Duration = &duration;
%put ERROR: Duration = &duration;

 

View solution in original post

2 REPLIES 2
Reeza
Super User

1. Consider using NONOTES option to not have notes printed to the LOG. Errors will be still displayed. 

2. Consider using NOTE/ERROR in log that will colour the text. I don't think there's a way you can sort it automatically, but it should catch your eye a bit easier. 

3. Consider writing the duration to a separate file - either a text or dataset that can be customized to your desires. 

 

%let duration=20;
%put WARNING: Duration = &duration;
%put ERROR- Duration = &duration;
%put ERROR: Duration = &duration;

 

kanivan51
Obsidian | Level 7
Just what I need. Thank you!

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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
  • 2 replies
  • 1524 views
  • 1 like
  • 2 in conversation