Routine output to Database

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
laiko
Premium Member
Premium Member
Posts: 35
Joined: Sun May 25, 2008 10:55 am

Routine output to Database

Post by laiko »

Hi,

First and foremost, I have very raw knowledge on DS so please bear with me :)
I would like to get the start, end time, elapsed time of a job and save them to a database table which has these 3 info as columns.
I know I can use the dsjob or DSGetJobInfo, but I don't have any idea how to write the routine and pass the output to write to an Oracle table.

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

Post by chulett »

In that case I'd suggest you don't even think about writing directly to a database from a routine or script. Simply write your desired output to a flat file and then use a normal job to load from the flat file to your database of choice.
-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 »

Download ETLstats from Kim Duke's web site. All that you request is already in that suite.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Might be a little overwhelming for someone at the 'very raw' state but nonetheless could help get them a leg up. :wink:
-craig

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