current system date

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
mtechnocrat
Participant
Posts: 38
Joined: Sat Feb 28, 2004 12:11 pm

current system date

Post by mtechnocrat »

how to add current sysdate in my target 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 »

What database? Most support their own methodology, like Oracle does with the keyword SYSDATE that you mentioned. Simply use Custom SQL, include all other fields in your data stream and insert 'SYSDATE' into your date/time field.

If you want to do it in DataStage, look up @DATE and @TIME for starters. You can get the current System time or the Job (really Transform) start time using functions or System Variables like these. Check your online help.
-craig

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