Redirectly job log to oracle db tables

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
getsatish_gk
Participant
Posts: 104
Joined: Sat Dec 24, 2005 1:26 am
Location: Bengaluru

Redirectly job log to oracle db tables

Post by getsatish_gk »

Hi ETLers,

Sinario is: i want to load the ds-job log(warnings) into a oracle table.
can anyone suggest how to achive this?
:cry:
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
getsatish_gk
Participant
Posts: 104
Joined: Sat Dec 24, 2005 1:26 am
Location: Bengaluru

Post by getsatish_gk »

Thanks for that universal first option.. i do before posting it...
:roll:
Most of them are dealing with warnings avoiding warning and etc...
but couldnt find how to redirect or write any ds-warning to an oracle table...

whether this is achieable with existing options or should go for routines
anythought?
:wink:
mahadev.v
Participant
Posts: 111
Joined: Tue May 06, 2008 5:29 am
Location: Bangalore

Post by mahadev.v »

Routines is your best option. In the online help of DataStage, search for sub routines that start with DS.
"given enough eyeballs, all bugs are shallow" - Eric S. Raymond
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then you're not searching the right search as there are tons of posts on extracting the log information and shoving it into another hiding place. They may not all deal specifically with just 'warnings' but the information is out there. I'm assuming the 'get out' part is the issue, not the 'put into Oracle' part.

For a routine-based solution, search for the various 'DSGetLog' functions:

DSGetLogSummary
DSGetLogEntry
DSGetNewestLogId


For a scripted solution, there are equivalents to all of these in dsjob which a search would also turn up:

dsjob -logsum
dsjob -logdetail
dsjob -lognewest


The former are in the online help, the latter in either of the Developer's Guides in the Command Line Interface chapter.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why not just get ETLstats, which does pretty much all you want and acts as a prototype for the remainder?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply