DATA Step, Macro, Functions and more

save the log file automatically ?

Reply
SAS Employee
Posts: 73

save the log file automatically ?

how can i save the log file automatically, when i am executing jobs on sas data integration studio?

means, whenever i execute a job, the log of that job should be save automatically at particular place on my computer as a .log file.
Super Contributor
Super Contributor
Posts: 3,174

Re: save the log file automatically ?

Posted in reply to Pavan_SAS
Investigate the use of SAS PROC PRINTTO with the LOG= option, mentioned in the DOC (link below).

Scott Barry
SBBWorks, Inc.

http://support.sas.com/documentation/onlinedoc/etls/usage34.pdf

Another DOC reference found at SAS support website:
http://support.sas.com/documentation/cdl/en/hostwin/59544/HTML/default/win-proc-printto.htm


SAS support website address:
http://support.sas.com/
SAS Super FREQ
Posts: 8,868

Re: save the log file automatically ?

Posted in reply to Pavan_SAS
Hi:
In addition to Scott's suggestions, you should also check the documentation for DI Studio. Since your jobs in DI Studio run on the Workspace Server in the BI Platform, you should investigate the DI Studio documentation for capturing job output and logs.

cynthia
Respected Advisor
Posts: 4,173

Re: save the log file automatically ?

Posted in reply to Cynthia_sas
Hi
Like some other SAS clients (i.e. SAS EG) SAS DI uses the object spawner to start a SAS session on the workspace server.

There are several ways how to save your log - and it depends a bit in what environment you're working and what rights you have.
http://support.sas.com/onlinedoc/913/getDoc/en/hostwin.hlp/win-sysop-altlog.htm

Besides of proc printto there would also be the option ALTLOG (but you need access to the .cfg file).

As this is processing jobs in DI I assume it is about unit testing: I would use the printto options - or just "manually" save the log from within DI.

Another way would be to process the DI generated SAS code in batch - and all the logs are created as permanent files (you could even define where to save this log files).

HTH
Patrick
SAS Employee
Posts: 73

Re: save the log file automatically ?

plz show me with some example, how i can use ALTLOG sas option in sas9.1.3

when i am executing this code, i am getting error.

-altlog C:\pavan\qwe.log

data a;
a=1;
run;


actually syntax is like this: -ALTLOG destination
Super Contributor
Super Contributor
Posts: 3,174

Re: save the log file automatically ?

Posted in reply to Pavan_SAS
The SAS invocation parameter -ALTLOG must either be defined in your CONFIG file settings or passed as an invocation (override) string. Recommend you search the SAS support website at http://support.sas.com/ for related DOC and topic-oriented technical papers.

Scott Barry
SBBWorks, Inc.
Ask a Question
Discussion stats
  • 5 replies
  • 1441 views
  • 0 likes
  • 4 in conversation