Help using Base SAS procedures

Saving Log

Reply
Occasional Contributor
Posts: 16

Saving Log

Hello.

Is it at all possible to write a script that outputs your log? I'm running large scripts overnight and unfortunately the computer is turned off late, so I get the output but can't check it for errors.... well very easily.

Thanks Sam.
Regular Contributor
Posts: 165

Re: Saving Log

Try looking into proc printto. The documentation should be easy enough to follow.

Good luck!
Occasional Contributor
Posts: 16

Re: Saving Log

Champion.

Thanks Rick!
Super Contributor
Super Contributor
Posts: 3,174

Re: Saving Log

Also recommend the particular SAS companion guide for your OS. And, with a batch-initiated SAS script, you have options for directly outputting the primary SASLOG (and also using ALTLOG= option as well).

Scott Barry
SBBWorks, Inc.

Suggested Google advanced search arguments, this topic / post:

batch script capture saslog site:sas.com

altlog site:sas.com

batch script commands site:sas.com

batch program log archive site:sas.com
Valued Guide
Posts: 2,175

Re: Saving Log

run those scripts in batch mode
and add the start-sas option
-logparm "WRITE= IMMEDIATE"
( for SAS9)
or
-unbuflog
(for SAS8)
Ask a Question
Discussion stats
  • 4 replies
  • 184 views
  • 0 likes
  • 4 in conversation