Inserting SYSDATE and Jobname to Oracle table

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
vskr72
Premium Member
Premium Member
Posts: 128
Joined: Wed Apr 28, 2004 9:36 pm

Inserting SYSDATE and Jobname to Oracle table

Post by vskr72 »

I am loading an Oracle table with daat from a SEQ file. THe table need a Sysdate and Job_name. Is it possible to derive these without using transformer stage? Just curious?

Kumar
major
Premium Member
Premium Member
Posts: 167
Joined: Mon Nov 26, 2007 12:21 am

Post by major »

hi,

In your case the only other way is to populate sysdate and jobname in the seq file which you are loading to oracle table.

Thanks
Major
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

SYSDATE yes.
JobName yes.

But only if you use user-defined SQL in the database stage, with SYSDATE specified explicitly and the JOBNAME hard-coded from the job that it's run from.
Last edited by ray.wurlod on Fri Dec 02, 2011 12:42 am, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chandra.shekhar@tcs.com
Premium Member
Premium Member
Posts: 353
Joined: Mon Jan 17, 2011 5:03 am
Location: Mumbai, India

Post by chandra.shekhar@tcs.com »

Since you are using a Sequential File as a source, I dont think so that you can populate sysdate and jobname except in Tfr.
Thanx and Regards,
ETL User
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Read my response again carefully.
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