How to insert the datastage Log-warnings into the oracle tab

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
vinodbp
Participant
Posts: 19
Joined: Thu Nov 29, 2007 12:29 am
Location: KOLKATA

How to insert the datastage Log-warnings into the oracle tab

Post by vinodbp »

Dear friends,


How to insert the datastage Log-warnings into the oracle table.

Thanks
Vinod
vinodkumar.b.p
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

You can access the log messages by using DSGetLogInfo(), then those values can be written to Oracle using the normal processing stages in a job.
nagarjuna
Premium Member
Premium Member
Posts: 533
Joined: Fri Jun 27, 2008 9:11 pm
Location: Chicago

Post by nagarjuna »

get the log of the job using dsjob -logsum or dsjob -logdetail and redirect into a file .Then load that file into oracle table .
Nag
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Or create a DataStage job to do it. Prefer a server job because these have inbuilt stage types for reading from hashed files.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
battaliou
Participant
Posts: 155
Joined: Mon Feb 24, 2003 7:28 am
Location: London
Contact:

Post by battaliou »

Ok, to save you some hastle here is some code wrongly ascribed as DSGetLogInfo

Code: Select all

event_max_li = DSGetNewestLogId ( DSJ.ME , DSJ.LOGANY) - 1
event_max_le = DSGetLogEntry(DSJ.ME,event_max_li)
call DSLogInfo(event_max_le,event_max_li)
3NF: Every non-key attribute must provide a fact about the key, the whole key, and nothing but the key. So help me Codd.
Post Reply