Log file path

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
shwetha.st
Participant
Posts: 5
Joined: Tue Mar 27, 2007 10:56 pm
Location: Bangalore

Log file path

Post by shwetha.st »

Hi all

I want to know the default path in which the logfile is created.
And can i see this log file.
My requirement is that i want to send a logfile attached in a mail the logfile is nothing but the details you see in the director after a job run.

Thanks in advance.
Shwetha :lol:
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There is no log 'file'. The logs are hashed files in the job's Project, named with the internal job number: RT_LOG1234 for example.

Your requirement does not have a simple or short answer. How are you planning on implementing this - in BASIC as a routine of some sort or via a scripted approach? Both use the same functions, just obviously in different ways. Check the online help for the various DSGet functions such as:

DSGetLogEntry
DSGetLogSummary
DSNewestLogId

Compare that to using the equivalent options as a command line 'dsjob' option:

-log
-logsum
-lognewest

If you decide on an approach, search the forums here using appropriate keywords as either of these have been discussed here quite a number of times.
-craig

"You can never have too many knives" -- Logan Nine Fingers
karthikgk0705
Premium Member
Premium Member
Posts: 45
Joined: Tue Aug 29, 2006 2:59 am
Location: Bangalore

Post by karthikgk0705 »

Hi,

There is an option available in director to get the log in a file. Try it out if that would help you.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yes, as Ray is wont to point out - it's called 'Print to file'. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply