BookmarkSubscribeRSS Feed
cjohnson
Obsidian | Level 7
A lot of code that I run displays data in the log, but the log doesn't display automatically. Is there a way to programmatically open the log? For example, after I use a put to write to the log, I would like it to open without having to look through the list of programs and find the appropriate log.

Also, when you run code to generate multiple datasets, only the last one opens. Can I tell each dataset programmatically to open/display?

Thanks,
Chris
Christopher Johnson
www.codeitmagazine.com
3 REPLIES 3
RMP
SAS Employee RMP
SAS Employee
What you are looking for is unfortunately not possible. The log is only displayed automatically when an error occurs in the code.

maybe in 4.3?

http://support.sas.com/documentation/cdl/en/whatsnew/62580/HTML/default/viewer.htm#egwhatsnew43.htm
Peter_C
Rhodochrosite | Level 12

For my own consumption I always have LOG open automatically with code always submitted before and after the code node - in the boxes available in options for sas programs. I use this code

%put ERROR- &egservername %sysfunc( datetime(), datetime22.2) ;

It highlights the server name and timestamp in red

sas_lak
Quartz | Level 8

Hi,

I am not sure it may be happen some times,

If we are using the procedure like

Proc Printto log="xxxxxxx\log.txt";

run;

automatically log information stored into output file not in log window.

better to stop log into outfiles.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 3 replies
  • 985 views
  • 0 likes
  • 4 in conversation