Write and run SAS programs in your web browser

How to clear SAS logs automatically?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 17
Accepted Solution

How to clear SAS logs automatically?

Hi,

Does anyone know this?

 

Many thanks,

D


Accepted Solutions
Solution
‎10-04-2016 04:30 PM
SAS Super FREQ
Posts: 8,645

Re: How to clear SAS logs automatically?

[ Edited ]

HI:
I do not believe the DM commands will work in SAS Studio. When you close your code tab for a program in SAS Studio, the corresponding log tab goes away. When you resubmit your code in SAS Studio, the previous log is replaced by the new log.

cynthia

View solution in original post


All Replies
Super User
Posts: 1,079

Re: How to clear SAS logs automatically?

[ Edited ]

Add, at any point of your program, at start or between steps

the command:

  DM 'clear log';

 

 

Solution
‎10-04-2016 04:30 PM
SAS Super FREQ
Posts: 8,645

Re: How to clear SAS logs automatically?

[ Edited ]

HI:
I do not believe the DM commands will work in SAS Studio. When you close your code tab for a program in SAS Studio, the corresponding log tab goes away. When you resubmit your code in SAS Studio, the previous log is replaced by the new log.

cynthia

Super User
Posts: 1,079

Re: How to clear SAS logs automatically?

[ Edited ]

I'm using SAS Studio, University Edition.

DM 'Clear Log';  was tested and works fine - it cleared all previous log lines..

Post a Question
Discussion Stats
  • 3 replies
  • 492 views
  • 3 likes
  • 3 in conversation