BookmarkSubscribeRSS Feed
Pavan_SAS
SAS Employee
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.
5 REPLIES 5
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
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/
Cynthia_sas
SAS Super FREQ
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
Patrick
Opal | Level 21
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
Pavan_SAS
SAS Employee
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
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 7973 views
  • 1 like
  • 4 in conversation