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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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