Desktop productivity for business analysts and programmers

Export LOGS

Reply
Occasional Contributor
Posts: 8

Export LOGS

hi all, please suggest me a solution to export all the logs generated in EG to a unix location. I am having 3-4 programs in my EG project and want all of them to be exported. thanks in advance.

Super User
Posts: 9,867

Re: Export LOGS

Check  proc printto

Occasional Contributor
Posts: 8

Re: Export LOGS

Hi Xia, Proc printto is working, but I am not able to see the log in EG window. Any solution to see the log in both the places ie EG window and the unix location?

Super User
Posts: 9,867

Re: Export LOGS

After running proc printto code ,you can print them back into LOG window by using another data step . Like :

.....................

proc printto;run;

data _null_;

infile 'the file name of printto'  ;

input;

putlog _infile_;

run;

Xia Keshan

Super User
Posts: 7,433

Re: Export LOGS

You can do this serverside.

First of all, you need to configure your workspace server to write separate logs for each session and also to include all actions done on the client. You do that in the sasv9_usermods.cfg and the logconfig.xml file.

Then you need to set up a process that copies the logs to the wanted location.

Regarding proc printto, specify the code you used, the log and what did not work.

"not working" ???

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Valued Guide
Posts: 3,208

Re: Export LOGS

ask your platform admin to activate logging using that logging framework at the server side.

The APM tooling is a standard documented approach with that.   No need for manual coding.

---->-- ja karman --<-----
Super User
Posts: 3,235

Re: Export LOGS

If your objective is just to keep logs of your EG Project runs, you could consider exporting your projects as code and run them as SAS batch jobs which generate log files automatically. That way you don't need to make any process changes (PROC PRINTTO) or configure your SAS servers for logging.

Ask a Question
Discussion stats
  • 6 replies
  • 595 views
  • 0 likes
  • 5 in conversation