BookmarkSubscribeRSS Feed
prad001
Obsidian | Level 7

I am running SAS code via Enterprise Guide and trying to save the log onto a local drive and at the same time print the log.

"PRINTTO" procedure only saves the log but does not print.. Is there any option to do both?

 

Thanks.. 

2 REPLIES 2
Kurt_Bremser
Super User

PRINTTO redirects the log stream. There is only one stream for the log text, so printing needs to be done from the file later on.

If EG connects to a server, the resulting file will be stored on the server, not on your desktop drive.

The log window in EG can be stored on your desktop and printed, but not with code statements.

s_lassen
Meteorite | Level 14

You can use the ALTLOG option to do this. This specifies the the destination for a copy of the log. It has to be set at SAS invocation (in the config file, or in the command used to start SAS), and will be in effect for the whole session.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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