BookmarkSubscribeRSS Feed
Filipvdr
Pyrite | Level 9

I'm comparing SAS Logs.

I have 2 questions:


1: While using proc printto, is it possible to keep the log for viewing? (so if error i can rerun, else the outputted log is ok).

2: For having a clean log (without the number in front), what can you use?  I'm using a program to compare both output but it points out every row as the number in front is always different..


THanks!



3 REPLIES 3
PaigeMiller
Diamond | Level 26

Answer to #1

proc printto log="filename.log" new; run;

Answer to #2

I don't know if this is possible, I hope someone else knows.

--
Paige Miller
Filipvdr
Pyrite | Level 9

#1 i want to save it in a .log file but still view it in my log window in sas

PaigeMiller
Diamond | Level 26

Oh, that wasn't clear from your original statement.

I don't think you can use PROC PRINTTO and still have the log appear in the log window. You can, however, open the .log file into the enhanced editor or program editor.

--
Paige Miller

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